- Receive payment contract from RabbitMQ Queue worker
- Dispatch RabbitMQ exchange that payment data of external gateway system
- (Sentry to trace error logs)[https://sentry.io/]
- make sure that .env file is created
- make sure if you will use docker
- To build:
docker-compose up --build -d
- Install RabbitMQ container and make sure that container is in order-network, sample:
2.1 - install RabbitMQ container
docker run -d --hostname my-rabbit --name some-rabbit -p 8080:15672 rabbitmq:3-management
2.2 - Add rabbitmq container payment network
docker network ls
docker network connect payment-worker-microservice_default some-rabbit
- download yarn
- yarn install
- yarn dev
To build to production
yarn run build
the dist folder will be generated
To test
yarn test
Build your own docker image, remember to change .env vars
docker build -f .\Dockerfile.prod -t orders-microservice-prod .
Install plugins
- ESLINT
- Prettier
- REST Client (to run requests inside vscode on requests file in root folder)
- Editorconfig
- Docker
- Add client model to payment contract (queue)
- Add Type of Payment model (card/boleto/débito) to payment contract (queue)
- Add client Address Model to payment contract (queue)
- Add database to save payments
- Code coverge > 80%
- Add Logging traces
- Add ALARM when errors occur
- Revison of production dockerfile builder
- Create CI/CD pipelines with docker-compose to GCP Cloud Builder
- Send pod to Kubernets Cluster