Welcome, this project was made with the aim of creating an API with NestJs using typescript.
- Put some concepts into practice and use them with a microservice.
- Use of the nestjs framework.
- Use of the typescript language.
- Use of PostgreSQL database, running locally in container via Docker.
- Use of messages with Apache Kafka.
- Node v18.15.0
- npm v9.6.5
- NestJs v9.4.2
- Prisma v4.13.0
- kafkajs: v2.2.4,
Participation in rocketseat free Ingite Lab in 2022. Objective to create a notification microservice with nestjs, kafka and prisma.
To access the API, just click on the links below:
- Link LocalHost with Swagger.
- Use Postman or Insomnia.
Swagger view:
The expected endpoints are working perfectly.
Notification Endpoints
Verbo | Endpoint | Parameter | Body |
---|---|---|---|
POST | /notifications | N/A | Schema notifications |
GET | /notifications/count/from/{recipientId} | code | N/A |
GET | /notifications/from/{recipientId} | code | N/A |
PATCH | /notifications/{id}/read | code | N/A |
PATCH | /notifications/{id}/unread | code | N/A |
PATCH | /notifications/{id}/cancel | code | N/A |
The schema (model) of the endpoints are used to pass the mandatory fields like in POST and PUT verbs.
All requests like GET, POST, PATCH are working.
Follow the list of commits to check what was implemented and changed! I use the Conventional Commits Pattern to help and detail the context of each commit made.
- Github: Victor Hugo.
- LinkedIn: Victor Hugo.
- My Website: Victor99dev.