This repository defines protofiles the following microservices:
- auth
- flashcard
- Protofiles: soora-sr-proto
- API Gateway: soora-sr-api-gateway
- Auth Microservice: soora-sr-auth
- Flashcard Microservice: soora-sr-flashcard
git clone https://github.com/abulhuman/soora-sr-api-gateway.git
git clone https://github.com/abulhuman/soora-sr-auth-svc.git
git clone https://github.com/abulhuman/soora-sr-flashcard-svc.git
โน๏ธ I have used a separate database for each microservice since that is the best approach to acheive loose coupling. I used mongoDB Atlas for development speed but using a docker container for the db is the best approach for production environments.
My implementation of the Optional Feature # 3.1 allows me to use the same code to acheive Optional Feature # 3.2 as well since I always get visible flashcards that havenextReviewDate
that is due or overdue.
Import the postman collection json file into postman to see all the required API endpoints with their variants. I have provided you with it in this repository to test the api gateway. ๐๐ POSTMAN Collection File. You can then right click on the imported postman collection then click on View Documentation
to see each example.
Usage:
// package.json
...
"dependencies": {
...
"soora-sr-proto": "git+https://github.com/abulhuman/soora-sr-proto.git",
...
}
...
// index.ts
// eg: gRPC config object for auth microservice
{
// ...
protoPath: 'node_modules/soora-sr-proto/proto/auth.proto',
// ...
}
Author: