A quick starter template for NestJS, RabbitMQ, and GraphQL lovers with support for container native development.
Make sure to have Docker and nodeJS installed on your machine.
# Build the docker image
$ docker-compose build
# Start the container in detached mode
$ docker-compose up -d
GraphQL endpoint: localhost:3000/graphql
{
login
}
Should return
{
"data": {
"login": "Hello from login "
}
}
REST endpoints: localhost:3000/
This endpoint will emit message to RMQ and have it consumed by mailer service. As a result you should see a mailer message:
mailer | Hello from mailer!