Introductory project to microservices, metrics and queue management with Kafka.
- MonoRepo with Yarn workspace
- Create micro services to payment
- Add typescript
- Create configuration process env
- Send emails to the payee of the transaction
- Create frontend
- Add websocket
- Add monitoring with prometheus in port
http://localhost:9090
consumer infos fromhttp://localhost:3000/metrics
and grafanahttp://localhost:4000
Obs: more details about system in ASSETS FOLDER.
- [] Change db to mongoDB
- [] Apply tests both backend and frontend
- [] Apply Design Patterns and Clean Architecture
- [] Deploy applications
❯ sudo docker-compose up --build -d
❯ yarn install
❯ yarn server
Open app application in bash in src folder project
❯ sudo docker-compose exec app sh
❯ nest g resource resource-name
❯ nest g service service-name
❯ yarn dev
Producer
❯ sudo docker-compose exec kafka bash
❯ kafka-console-producer --topic topic-name --bootstrap-server localhost:9092
Consumer
❯ sudo docker-compose exec kafka bash
❯ kafka-console-consumer --topic topic-name --bootstrap-server localhost:9092
- Create
.env
and set on api services;