SQL_USER={YOUR_DB_USER}
SQL_PASSWORD={YOUR_DB_PASSWORD}
SQL_DB={YOUR_DB_NAME}
docker compose -f docker-compose.yaml up --build -d
Initial data was set in the first alembic migration file. As soon as docker compose runs the seeded data is being inserted into database.
+-----------------+------------+------------------------------------------------------------+
| URL | METHOD | DESCRIPTION |
+-----------------+------------+------------------------------------------------------------+
| /update-rates | GET | Save last updated currency exchange rates into database |
+-----------------+------------+------------------------------------------------------------+
| /last-update | GET | Return last updated datetime from database |
+-----------------+------------+------------------------------------------------------------+
| /convert | GET | Convert given value from source currency to target |
+-----------------+------------+------------------------------------------------------------+