🎓 Minimal project template for one Moleculer microservice.
- Moleculer v0.14.x with
moleculer.config.js
- Simple project with a demo
greeter
service - Transporter & Cacher
- Docker & Docker Compose files
- Unit tests with Jest
- Lint with ESLint
- Launch file for debugging in VSCode
To install use the moleculer-cli tool.
$ moleculer init nano my-project
$ moleculer init nano my-project
Template repo: moleculerjs/moleculer-template-nano
? Select a transporter NATS (recommended)
? Would you like use cache? Yes
? Select a cacher solution Memory
? Would you like to enable metrics? Yes
? Would you like to enable tracing? Yes
? Add Docker files? Yes
? Use ESLint to lint your code? Yes
Create 'moleculer-nano' folder...
? Would you like to run 'npm install'? Yes
npm run dev
- Start service.js with hot-reloading and REPL.npm lint
- Run lintingnpm run ci
- Start testing in watch modenpm start
- Start service.js in production modenpm test
- Run tests & generate coverage report
This template is available under the MIT license.
Copyright (c) 2020 MoleculerJS