Skip to content

Webhooks microservice - authenticated with JWT and Prometheus monitoring. Deployed with k8s

Notifications You must be signed in to change notification settings

sauravhiremath/webhooks-microservice

Repository files navigation

Moleculer

webhooks-microservice

Usage

  • Create a .env and docker-compose.env file, with data matching sample.env.
  • Start the project with yarn 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. (You will not be allowed to access them without jwt authorization)

In the terminal, try the following commands:

  • nodes - List all connected nodes.
  • actions - List all registered service actions.
  • call webhooks.list - List the webhooks (call the webhooks.list action).

Services

  • api: API Gateway services
  • webhooks: Webhooks service with trigger, list, create, update and delete actions.

Mixins

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

YARN scripts

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

About

Webhooks microservice - authenticated with JWT and Prometheus monitoring. Deployed with k8s

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published