Resolution of technical evaluation
- Python >= 3.9
- Uvicorn
- Gunicorn
- FastApi
- Requests
- Python Decouple
- Test: Unittest
- Code formatter: Black
- Deploy: Heroku
- Create virtual environment
- Install dependencies on virtual environment
- Activate virtual environment
- In terminal:
uvicorn src.server.app:app -reload
- You can access the autogenerated documentation through: http://127.0.0.1:8000/docs
For run the main.py file
- Copy the example file '.env_example' as '.env' at the project level.
- Sets the value corresponding to the variables.
Where are the tests?
The tests are located in 'test' folder. They are 2 files to test the routers endpoints.
How to run the tests?
- Simple:
python -m unittest
- With details:
python -m unittest -v