microservices-architechture
This is a microservice architecture generator
Getting started
Use below command to scaffold basic microservice architecture
npx microservice-arch-generator mag
Run following command one by one :
cd gateway
npm install
npm run dev
- Open another terminal window.
cd users/src/node
npm install
npm run dev
Folder Structure Conventions
.
├── gateway # Main app to load other services(i.e., users)
├── src # All the source code inside this folder
├── config
├── config.development.json
└── config.production.json
└── index.js
└── package.json
└── users # Demo service for usage
├── src # All the source code inside this folder
├── node # contains a demo node app
├── assets
├── bundle
├── client
├── config
└── swagger
└── swagger.json
├── controllers
└── usersController.js
├── helpers
├── models
├── routes
└── usersRoutes.js
├── services
└── UsersService.js
├── index.js
├── package.json
└── webpack.config.js
└── react # contains a demo react app
└── package.json
Bundling
Use below commands to bundle whole node application inside users
cd users/src/node
npm run build