Skip to content

lkevin0/template-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moleculer template

🎓 Moleculer-based microservices project template.

Node.js CI

Features

  • Moleculer v0.14
  • MongoDB Mixin.
  • Optional API Gateway service with detailed service settings.
  • 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 quezt/moleculer-project my-project

Prompts

$ moleculer init quezt/moleculer-project my-project

Template repo: quezt/moleculer-project
? Add API Gateway (moleculer-web) service? Yes
? Would you like to communicate with other nodes? Yes
? Connect to MongoDB? No
? Use ESLint to lint your code? Yes
? Use prettier to format your code? Yes
? Setup unit tests with Jest? Yes
Create 'my-project' folder...
? Would you like to run 'npm install'? Yes

Services

  • api: API Gateway services.
  • calculator: Calculator service.
  • documents: Documents Controller service.
  • documents-store: Sample DB service. To use with MongoDB, set MONGODB_URI environment variables and install MongoDB adapter with yarn add moleculer-db-adapter-mongo.

Mixins

  • mongodb.mixin: Database access mixin for services. Based on moleculer-db

Useful links

License

moleculer-project is available under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published