Service for working with currency rates of the Central Bank of the Russian Federation
- Python 3.11
To download the repository, you need to create an SSH key and add it to your account according to instructions.
Now you can clone the repository using SSH
$ git clone [email protected]:Valentina-Gol/currency_viewer.git
To run the project locally you need to set up a python virtual environment
$ cd currency_viewer
$ python3 -m venv currency_viewer_venv
Activate the virtual environment
- on Windows
$ currency_viewer_venv\Scripts\activate
- on macOS or Linux
$ source currency_viewer_venv/bin/activate
Install dependencies for the service
$ pip install -r requirements.txt
Start the service using Uvicorn
$ uvicorn app.main:app
The service will be deployed at
http://127.0.0.1:8000
You can interact with the service via Swagger UI at
http://127.0.0.1:8000/docs
And also use ReDoc
http://127.0.0.1:8000/redoc
To run the tests, run the commands
$ cd tests
$ pytest -v