🎓 Minimal project template for one microservice.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
template
.gitignore
LICENSE
README.md
meta.js
package.json

README.md

Moleculer template: nano

🎓 Minimal project template for one Moleculer microservice.

Features

  • Moleculer v0.11.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
? Add Docker files? Yes
? Use ESLint to lint your code? Yes
? Setup unit tests with Jest? 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) 2018 MoleculerJS

@moleculerjs @MoleculerJS