This API can store any currency listed on ISO-4217.
You can make a CRUD using the route /api/currency
, and get a list based on what you stored
using /api/currency/curencies-price
. For more info, access /docs
.
- Python 3.9
- FastApi - Framework
- Motor - Asynchronous Python driver for MongoDB
- Docker - Project Structure
- Docker-compose - Development Environment
- MongoDB - Development Database
- All commands are described on
Makefile
. - to install make, run
apt-get update && apt-get install gcc g++ make
. - Run
make help
to get all available commands.
- Clone this repository
- Build docker image and run migrates:
make build
- Run api:
make run-docker
- In your browser call: Swagger Localhost to get API doc.
- Clone this repository.
- To initialize and install dependencies, run:
make init
- Run:
make run-local
- In your browser call: Swagger Localhost to get API doc.
Note: To run locally, you must have a database service configured. make build
can be used to
quickly start this service.
To test, just run make test
.