Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

microservice-arch-generator

Package Overview
Dependencies
1
Maintainers
1
Versions
24
Issues
File Explorer

Advanced tools

microservice-arch-generator

This is a microservice architecture generator

    3.8.0latest

Version published
Maintainers
1
Yearly downloads
880

Weekly downloads

Readme

Source

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 # provided folder to create a react app └── package.json

Bundling

Use below commands to bundle whole node application inside users

cd users/src/node npm run build

Generating service (alpha version)

Use below command to generate a service with your service name

npx microservice-arch-generator mag --create-service=your_service_name
  • While using this feature make sure that inside gateway folder you register new service inside config file(s). and very importantly remember to put root path("/") prefix object at the bottom(default users route)

  • Note: This feature is in alpha version so it will generate files with given serivce_name but content inside file will just be a simple copy of users service folder.

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc