GithubHelp home page GithubHelp logo

nkrafi / node-microservice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sayeed1999/home

0.0 0.0 0.0 226 KB

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

TypeScript 97.30% Dockerfile 2.70%

node-microservice's Introduction

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

node-microservice's People

Contributors

sayeed1999 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.