This project provides the RESTful APIs for getting card status given the card_id or user_phone.
Purposefully, I have kept the .env file so that the setup becomes easy. Obviously,it will be gitignored in a real scenario
The base URL for all endpoints is: http://localhost:4000/
- Endpoint:
/get_card_status
- Method:
GET
- Description: Get card status given the card_id or user_phone.
- URL Params:
parameter : card_id and value : [ Any CARD ID from the csv files ] or parameter: user_phone and value : [ Any User Mobile or User contact from the csv files ]
Card status of the card associated with that given card_id or user_phone
As soon as we start the server all those csv files will be parsed and stored as models in Mongodb.```
Create a repository on hub.docker.com as your_dockerhub_username/your_repository_name
1. docker build -t your_dockerhub_username/your_repository_name .
2. docker run -it your_dockerhub_username/your_repository_name
3. docker push your_dockerhub_username/your_repository_name