NkRaFI / node-microservice

The monorepo project will contain all microservices for the "Home" project which will have everything needed as independent services deployable via docker kubernetes! In sha Allah

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HOME

The monorepo project will contain all microservices for the Home project which will have everything needed as independent services deployable via docker kubernetes! In sha Allah

OVERALL STRUCTURE

./api-gateway 
  # the central service that client app will communicate with called the api gateway!!
  # runs on localhost:4000
  
./auth-service 
  # microservice for user authentication & authorization
  # runs on localhost:4001
  # server dependency: mysql
  
./chat-service 
  # microservice for messenger-like chatting
  # runs on localhost:4005
  # server dependency: mongodb
  
./ecom-service 
  # microservice for e-commerce or marketplace
  # runs on localhost:4004
  # server dependency: mysql
  
./email-service 
  # microservice for mailing tasks
  # runs on localhost:4003
  # server dependency: nodemailer, mailtrap

./home-service 
  # microservice for the virtual home where people will gather to share emotions & thoughts..
  # runs on localhost:4002
  # server dependency: mongodb

How to run the project

You can run each microservice independently by npm start command.

EACH SERVICE FOLDER STRUCTURE

src
│ app.js # App entry point
└─── api # Express route controllers for all the endpoints of the app
└───── routes
└───── middlewares
└─── config # Environment variables and configuration related stuff
└─── jobs # Jobs definitions for agenda.js
└─── loaders # Split the startup process into modules
└─── models # Database models
└─── modules
└───── base
└─────── controller
└─────── service
└─────── repository
└───── <module>
└─────── controller
└─────── service
└─────── repository
└─── subscribers # Event handlers for async task
└─── types # Type declaration files (d.ts) for Typescript
└─── utils
└───── constants
└───── helpers

About

The monorepo project will contain all microservices for the "Home" project which will have everything needed as independent services deployable via docker kubernetes! In sha Allah

License:MIT License


Languages

Language:TypeScript 97.3%Language:Dockerfile 2.7%