A webapp that helps you plan your travels and take inspiration from others
travelpals-backend/
βββ services/ # All microservices
β βββ auth-service/
β β βββ src/
β β β βββ controllers/
β β β βββ routes/
β β β βββ services/
β β β βββ middleware/
β β β βββ index.ts
β β βββ package.json
β β βββ tsconfig.json
β β βββ .env
β β
β βββ trip-service/
β β βββ src/
β β β βββ controllers/
β β β βββ routes/
β β β βββ services/
β β β βββ models/
β β β βββ middleware/
β β β βββ index.ts
β β βββ package.json
β β βββ tsconfig.json
β β βββ .env
β β
β βββ user-service/
β β βββ src/
β β β βββ controllers/
β β β βββ routes/
β β β βββ services/
β β β βββ index.ts
β β βββ package.json
β β βββ tsconfig.json
β β βββ .env
β β
β βββ media-service/
β β βββ src/
β β β βββ controllers/
β β β βββ routes/
β β β βββ index.ts
β β βββ package.json
β β βββ tsconfig.json
β β βββ .env
β β
β βββ social-service/
β βββ src/
β β βββ controllers/
β β βββ routes/
β β βββ services/
β β βββ index.ts
β βββ package.json
β βββ tsconfig.json
β βββ .env
β
βββ gateway/
β βββ api-gateway/
β βββ src/
β β βββ routes/
β β βββ middleware/
β β βββ index.ts
β βββ package.json
β βββ tsconfig.json
β βββ .env
β
βββ libs/ # Shared code
β βββ types/
β β βββ trip.d.ts
β β βββ user.d.ts
β β βββ auth.d.ts
β βββ utils/
β β βββ verifyToken.ts
β β βββ logger.ts
β βββ env/
β βββ loadEnv.ts
β
βββ docker/
β βββ docker-compose.yml
β βββ Dockerfile.service
β βββ Dockerfile.gateway
β
βββ .github/
β βββ workflows/
β βββ ci.yml
β βββ lint.yml
β
βββ .env.example # Env var template for all services
βββ tsconfig.base.json # Shared base TS config
βββ package.json # Root-level scripts (optional)
βββ README.md
// commands to run
// install microservice dependencies npm init -y npm install express dotenv @supabase/supabase-js npm install -D typescript ts-node-dev @types/node @types/express
// install db dependencies npm install @supabase/supabase-js