Skip to content

Latest commit

Β 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TravelPals

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

About

A webapp that helps you plan your travels and take inspiration from others

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages