Link: https://github.com/KoffieLabs/backend-challenge
This project uses conda to manage the Python environment. The required packages are documented in koffie_labs.yml
.
To set up the environment to run this project, do these steps:
- Run this command
conda env create -f koffie_labs.yml
to create the environment with the necessary packages - Run this command
conda activate koffie_labs
to make thekoffie_labs
environment active - Now the environment is ready for the project to run
Once the environment has been set up, do the following steps to run the app:
- Run
uvicorn koffie.main:app
- The app is now running at
http://127.0.0.1:8000
- Go to
http://127.0.0.1:8000/docs
to see the API documentation via Swagger UI- You can use the Swagger UI to interact with the APIs
This project uses pytest to run tests. To run the tests, simply run pytest
in the terminal.