🎓 Simple project template for Moleculer-based projects
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: project-simple

🎓 Simple Moleculer based microservices project template

Features

  • Moleculer v0.11.x with moleculer.config.js
  • Simple project with a demo greeter service
  • Optional API Gateway service
  • Optional Transporter & Cacher
  • Unit tests with Jest
  • Lint with ESLint
  • Launch file for debugging in VSCode

Install

To install use the moleculer-cli tool.

$ moleculer init project-simple my-project

Prompts

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

  • npm run dev - Start service.js in hot-reload and start REPL
  • npm lint - Run ESLint
  • npm run ci - Start testing in watch mode
  • npm start - Start service.js in production mode
  • npm test - Run tests & coverage

License

Moleculer-cli is available under the MIT license.

Contact

Copyright (c) 2018 MoleculerJS

@moleculerjs @MoleculerJS