Skip to content

Minimal project template for one Moleculer microservice with typescript.

License

Notifications You must be signed in to change notification settings

moleculerjs/moleculer-template-nano-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moleculer template: nano-typescript

🎓 Minimal project template for one Moleculer microservice with typescript.

Features

  • 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

Install

To install use the moleculer-cli tool.

$ moleculer init nano-typescript my-project

Prompts

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

About

Minimal project template for one Moleculer microservice with typescript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published