Follow these steps to set up your environment:
-
Create a virtual environment:
python -m venv .venv
-
Activate the virtual environment:
On Windows:
.venv\Scripts\activate
On Unix or MacOS:
source .venv/bin/activate
-
Install the requirements:
pip install -r requirements.txt
-
Run the server:
uvicorn main:app --reload
-
Run the tests:
Open a new terminal and activate the virtual environment as described in step 2. Then run the tests with your preferred test runner. For example, if you're using pytest:
pytest -s test.py
Remember to replace pytest
with your actual test command if it's different.