zugarzeeker / express-moleculer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Moleculer

error-handler2

This is a Moleculer-based microservices project. Generated with the Moleculer CLI.

Usage

Start the project with npm run dev command. In the terminal, try the following commands:

  • nodes - List all connected nodes.
  • actions - List all registered service actions.
  • call greeter.hello - Call the greeter.hello action.
  • call greeter.welcome --name John - Call the greeter.welcome action with the name parameter.

Services

  • api: API Gateway services
  • greeter: Sample service with hello and welcome actions.

Useful links

NPM scripts

  • npm run dev: Start development mode (load all services locally with hot-reload & REPL)
  • npm run start: Start production mode (set SERVICES env variable to load certain services)
  • npm run cli: Start a CLI and connect to production. Don't forget to set production namespace with --ns argument in script
  • npm run ci: Run continuous test mode with watching
  • npm test: Run tests & generate coverage report
  • npm run dc:up: Start the stack with Docker Compose
  • npm run dc:down: Stop the stack with Docker Compose

About


Languages

Language:JavaScript 96.8%Language:Handlebars 1.4%Language:Dockerfile 0.8%Language:Shell 0.5%Language:CSS 0.5%