Skip to content

nicodiferd/campus-storage

Repository files navigation

Campus Storage - P2P Storage Platform for College Students

Overview

Campus Storage is a peer-to-peer storage marketplace that connects college students who need temporary storage with those who have extra space. Built with modern technologies and designed for scalability, security, and user trust.

Tech Stack

  • Backend: NestJS with TypeScript, GraphQL (Apollo Server)
  • Frontend: Next.js 14 with React 18, TypeScript
  • Mobile: React Native with TypeScript
  • Database: PostgreSQL with TypeORM
  • Real-time: Socket.IO with Redis
  • Payment: Stripe Connect
  • Infrastructure: AWS (ECS, RDS, ElastiCache, S3, CloudFront)

Project Structure

campus-storage/
├── backend/          # NestJS backend with GraphQL API
├── frontend/         # Next.js web application
├── mobile/          # React Native mobile app
├── shared/          # Shared types and utilities
├── infrastructure/  # Docker, Kubernetes, Terraform configs
└── docs/           # Documentation

Getting Started

Prerequisites

  • Node.js >= 18.0.0
  • npm >= 9.0.0
  • PostgreSQL >= 14
  • Redis >= 7.0
  • Docker & Docker Compose (for local development)

Installation

# Clone the repository
git clone https://github.com/your-org/campus-storage.git
cd campus-storage

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Edit .env with your configuration

# Start PostgreSQL and Redis (using Docker)
docker-compose up -d postgres redis

# Run database migrations
cd backend && npm run migration:run

# Start development servers
npm run dev

Development

Architecture

The platform follows a microservices-inspired architecture with:

  • GraphQL Federation for unified API
  • Event-driven architecture for asynchronous operations
  • Database-per-service pattern
  • Zero-trust security model

Features

  • Student verification (.edu email, SheerID)
  • Secure listing creation and management
  • Real-time messaging
  • Stripe Connect payment integration
  • Bidirectional review system
  • Mobile apps for iOS and Android

Security

  • JWT authentication with refresh tokens
  • End-to-end encryption for sensitive data
  • RBAC (Role-Based Access Control)
  • Rate limiting and DDoS protection
  • CCPA and FERPA compliance

Contributing

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

License

This project is proprietary and confidential.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors