Skip to content

rendyproklamanta/nodejs-microservices

Repository files navigation

Nodejs Based Microservices

Prerequisite

Tech and Packages we use in this project

  • Framework Express.js.
  • http-proxy-middleware : API gateway
  • Mongodb : use for database .
  • Mongoose : for all schema validation and database connection.
  • JsonwebToken : for create jsonwebtoken.
  • BcryptJs : for password encryption.
  • Day.js : for data format.
  • Nodemon : for run on dev server.
  • Cors and Body parser
  • morgan : http logger
  • express validator
  • yup : validator
  • jest : for unit testing
  • module-alias : import alias @
  • pm2 : for deployed to VM
  • passport : login management

Local development

  • Set Terminal VSCode to git bash

  • Start Monolith

./start-mono.sh

======== OR ========

  • Start Microservices
./start-micro.sh

On Production

Microservices Flow

  • @ Editing Flow => services => routes => middleware => controller => broker => model

  • @ Deployment Flow
  • using cloud VPS minimal 2gb
  • using gitlab runner for pipeline
  • edit "gitlab-ci.yml" to deploy each service

About

nodejs monolith support microservices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published