Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moleculerjs/moleculer-template-nano-typescript
Minimal project template for one Moleculer microservice with typescript.
https://github.com/moleculerjs/moleculer-template-nano-typescript
moleculer moleculer-template
Last synced: 3 months ago
JSON representation
Minimal project template for one Moleculer microservice with typescript.
- Host: GitHub
- URL: https://github.com/moleculerjs/moleculer-template-nano-typescript
- Owner: moleculerjs
- License: mit
- Created: 2018-09-03T22:32:34.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-07T08:14:37.000Z (almost 6 years ago)
- Last Synced: 2024-05-23T09:05:15.717Z (6 months ago)
- Topics: moleculer, moleculer-template
- Language: TypeScript
- Homepage:
- Size: 19.5 KB
- Stars: 8
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-moleculer - moleculer-template-nano-typescript - Minimal project template for Typescript project. (Templates / Typescript)
README
# Moleculer template: `nano-typescript`
:mortar_board: 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](http://facebook.github.io/jest/)
- Lint with [TSLint](https://palantir.github.io/tslint/)
- 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-typescript my-project
```## Prompts
```
$ moleculer init nano-typescript my-projectTemplate 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](https://tldrlegal.com/license/mit-license).## Contact
Copyright (c) 2018 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)