Skip to content

ArpadGBondor/Michael_Guay_-_NestJS_Microservices_-_01_Sleepr

Repository files navigation

Michael Guay - NestJS Microservices: Build & Deploy a Scaleable Backend - 01 - Sleepr

  • Section 1: Introduction
  • Section 2: Common Library
  • Section 3: Authentication
  • Section 4: Payments
  • Section 5: Notifications

Deployed

  • Not deployed yet

Used Tools:

  • Backend:
    • NestJS
      • Microservices
      • MongoDB - Mongoose

How to run:

  • Run in docker
    • docker-compose up
  • Access endpoints through an API testing tool, like Postman:

Mayor changes:

  • Not yet.

Environment variables:

  • 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
    • JWT_EXPIRATION=3600
    • HTTP_PORT=3001
    • TCP_PORT=3002
  • 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
  • payments: apps/payments/.env
    • PORT=3003
    • STRIPE_SECRET_KEY
    • NOTIFICATIONS_HOST=notifications
    • NOTIFICATIONS_PORT=3004
  • notifications: apps/notifications/.env

The instructor's solution:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published