DrewJKnowles / Email-Moleculer-Microservice

The idea of this project is to have a microservice that allows you to set an email template or list of templates. By calling on the email service it will select the template and load in your data to that email template. Send the email to the desire location.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Moleculer

Email-Moleculer-Microservice

The idea of this project is to have a microservice that allows you to set an email template or list of templates. By calling on the email service it will select the template and load in your data to that email template. Send the email to the desire location.

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

Usage

Start the project with npm run dev command. After starting, open the http://localhost:3000/ URL in your browser. On the welcome page you can test the generated services via API Gateway and check the nodes & services.

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
  • Email: Email Service that will send out emails to addresses

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 lint: Run ESLint
  • 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

The idea of this project is to have a microservice that allows you to set an email template or list of templates. By calling on the email service it will select the template and load in your data to that email template. Send the email to the desire location.


Languages

Language:TypeScript 50.7%Language:HTML 33.7%Language:JavaScript 14.5%Language:Dockerfile 0.8%Language:Shell 0.3%