- Section 1: Introduction
- Section 2: Common Library
- Section 3: Authentication
- Section 4: Payments
- Section 5: Notifications
- Not deployed yet
- Backend:
- NestJS
- Microservices
- MongoDB - Mongoose
- NestJS
- Run in docker
docker-compose up
- Access endpoints through an API testing tool, like Postman:
- Not yet.
- auth:
apps/auth/.env
- MONGODB_URI=mongodb://mongo:27017/sleepr
- connects to mongo image in docker-compose
- JWT_SECRET=R30j3GPiQKr+BsRLsNdRauqVxEIYt/3ICWUARtGoBnosjN6JYq3SzuiCK4Y4Tup9
- random string generated with
openssl rand -base64 48
- random string generated with
- JWT_EXPIRATION=3600
- HTTP_PORT=3001
- TCP_PORT=3002
- MONGODB_URI=mongodb://mongo:27017/sleepr
- reservations:
apps/reservations/.env
- MONGODB_URI=mongodb://mongo:27017/sleepr
- connects to mongo image in docker-compose
- PORT=3001
- AUTH_HOST=auth
- AUTH_PORT=3002
- PAYMENTS_HOST=payments
- PAYMENTS_PORT=3003
- MONGODB_URI=mongodb://mongo:27017/sleepr
- payments:
apps/payments/.env
- PORT=3003
- STRIPE_SECRET_KEY
- get your key from Stripe
- NOTIFICATIONS_HOST=notifications
- NOTIFICATIONS_PORT=3004
- notifications:
apps/notifications/.env
- PORT=3004
- SMTP_USER=
- Gmail email address
- GOOGLE_OAUTH_CLIENT_ID=
- Client Id from https://console.cloud.google.com/
- GOOGLE_OAUTH_CLIENT_SECRET=
- Client Secret from https://console.cloud.google.com/
- GOOGLE_OAUTH_REFRESH_TOKEN=
- Refresh token from https://developers.google.com/oauthplayground
- The source code of the instructor's solution is in this Github repo