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