Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moleculerjs/moleculer-template-nano
:mortar_board: Minimal project template for one microservice.
https://github.com/moleculerjs/moleculer-template-nano
moleculer moleculer-template
Last synced: 2 months ago
JSON representation
:mortar_board: Minimal project template for one microservice.
- Host: GitHub
- URL: https://github.com/moleculerjs/moleculer-template-nano
- Owner: moleculerjs
- License: mit
- Created: 2017-09-12T14:15:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-06T18:24:04.000Z (almost 2 years ago)
- Last Synced: 2024-05-23T10:01:05.909Z (8 months ago)
- Topics: moleculer, moleculer-template
- Language: JavaScript
- Homepage:
- Size: 59.6 KB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-moleculer - moleculer-template-nano - Minimal project template for Javascript project. (Templates / Javascript)
README
# Moleculer template: `nano`
:mortar_board: 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](http://facebook.github.io/jest/)
- Lint with [ESLint](http://eslint.org/)
- Launch file for debugging in [VSCode](https://code.visualstudio.com/)## Install
To install use the [moleculer-cli](https://github.com/moleculerjs/moleculer-cli) tool.```bash
$ moleculer init nano my-project
```## Prompts
```
$ moleculer init nano my-projectTemplate 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](https://tldrlegal.com/license/mit-license).## Contact
Copyright (c) 2020 MoleculerJS[![@moleculerjs](https://img.shields.io/badge/github-moleculerjs-green.svg)](https://github.com/moleculerjs) [![@MoleculerJS](https://img.shields.io/badge/twitter-MoleculerJS-blue.svg)](https://twitter.com/MoleculerJS)