REST API server that serves capstone.
- Python version
>= 3.6
- pip version
>= 9.0
- uvicorn
pip install uvicorn
- fastapi
pip install fastapi
Run the server uvicorn main:app --reload
Run server on specific port
uvicorn main:app --reload --port <port number>
On your browser, go to
http://127.0.0.1:8000/docs
Place Types docs
gas_station
restaurant
supermarket
the rest of the places will be covered by the 'else' attributes in the Firebase 'cards' collection.
/latlong/user_id
Returns stores within 500m in radius with best card recommendation for that user.
{
"store_name": str,
"card_bank": str,
"card_name": str,
"cashback_amount": int,
"distance": double,
"img" str,
},
.
.
.