🎓 Minimal project template for one Moleculer microservice with typescript.
- Moleculer v0.13.x with
moleculer.config.ts
- Simple project with a demo
greeter
service - Transporter & Cacher
- Docker & Docker Compose files
- Unit tests with Jest
- Lint with TSLint
- Launch file for debugging in VSCode
To install use the moleculer-cli tool.
$ moleculer init nano-typescript my-project
$ moleculer init nano-typescript my-project
Template repo: moleculerjs/moleculer-template-nano-typescript
? Select a transporter NATS (recommended)
? Would you like use cache? Yes
? Select a cacher solution Memory
? Add Docker files? Yes
? Use TSLint to lint your code? Yes
? Setup unit tests with Jest? 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) 2018 MoleculerJS