Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 487 Bytes

readme.md

File metadata and controls

16 lines (12 loc) · 487 Bytes

Node.js Microservice Example

This is a small example of a microservice in Node.js. It uses Apollo to run a GraphQL API which serves as a gateway to a REST API for the database layer, a CloudAMQP message queue as well as a Mailjet mail service.

  • npm i
  • pm2 start ecosystem.config.js
  • pm2 logs
  • pm2 monit
  • pm2 stop all
  • pm2 start all
  • pm2 delete all

GraphQL API on: http://localhost:4000 GraphiQL on: http://localhost:4000/graphql REST API on: http://localhost:3001/mail