🎓 Simple Moleculer based microservices project template
- Moleculer v0.11.x with
moleculer.config.js - Simple project with a demo
greeterservice - Optional API Gateway service
- Optional Transporter & Cacher
- Unit tests with Jest
- Lint with ESLint
- Launch file for debugging in VSCode
To install use the moleculer-cli tool.
$ moleculer init project-simple my-project$ moleculer init project-simple moleculer-demo2
Template repo: moleculerjs/moleculer-template-project-simple
? Add API Gateway (moleculer-web) service Yes
? Would you like communicate with other nodes? Yes
? Select a transporter NATS (recommended)
? Would you like use cache? Yes
? Select a cacher solution Memory
? Use ESLint to lint your code? Yes
? Setup unit tests with Jest? Yes
Create 'moleculer-demo2' folder...
? Would you like to run 'npm install'? Yes
npm run dev- Start service.js in hot-reload and start REPLnpm lint- Run ESLintnpm run ci- Start testing in watch modenpm start- Start service.js in production modenpm test- Run tests & coverage
Moleculer-cli is available under the MIT license.
Copyright (c) 2018 MoleculerJS