Skip to content

notsonoobie/sls-http-layers-microservice

Repository files navigation

Serverless - Microservices

  • Auth Service

    • Registration API [POST]

    • Login API [POST]

    • View Profile API [GET]

  • Todo Service

    • Get Todo By ID API [GET]

    • Get Todos API [POST]

    • Create Todo API [POST]

    • Update Todo API [POST]

    • Delete Todo API [DELETE]


Requirements

  • Node.JS (12+)
  • NPM
  • AWS CLI
  • Serverless
  • make
  • Mongo DB Server

Scripts

  1. Base Project Setup
npm run setup
  1. Start Microservice
npm run start:microservice
  1. Start Todo Service
cd microservice/ && make runtodo
  1. Start Auth Service
cd microservice/ && make runauth
  1. Dev Lamdas Deployment
npm run deploy:lamdas:dev
  1. Production Lamdas Deployment
npm run deploy:lamdas:prod
  1. Dev Layers Deployment
npm run deploy:layers:dev
  1. Production Layers Deployment
npm run deploy:layers:prod
  1. Build Swagger.JSON
npm run build:swagger
  1. Start Swagger UI (Port - 3000 HTTP)
npm run start:swagger

After Deployment

  1. STACK (dev + prod) -

image

  1. FUNCTIONS (dev + prod) -

image

image

  1. Layer -

image


About

SLS Boilerplate - HTTP / Microservices / Layers / MIddlewares / DB / Swagger / Offline Support

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors