Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.65 KB

README.md

File metadata and controls

50 lines (40 loc) · 1.65 KB

Moleculer template: nano

🎓 Minimal project template for one Moleculer microservice.

Features

  • 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

Install

To install use the moleculer-cli tool.

$ moleculer init nano my-project

Prompts

$ 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 scripts

  • npm run dev - Start service.js with hot-reloading and REPL.
  • npm lint - Run linting
  • npm run ci - Start testing in watch mode
  • npm start - Start service.js in production mode
  • npm test - Run tests & generate coverage report

License

This template is available under the MIT license.

Contact

Copyright (c) 2020 MoleculerJS

@moleculerjs @MoleculerJS