To run tests independent of your setup, do:
docker compose run tests
- Clone this repository &
cd
into it - Ensure you are on python 3.12 - we recommend using
pyenv
to manage python versions:pyenv install 3.12
pyenv local 3.12
- Install dependencies using
poetry
:poetry install
poetry shell
- If you are going to contribute, please install the pre-commit hooks:
pre-commit install
The above commands download and install the required libraries for the project and activate the virtual environment.
- To run the app from the command line type:
uvicorn main:app --reload
The API should be up and running (localhost) at:
- Create a python run configuration
- Module name: uvicorn
- Parameters: main:app --reload
- Python interpreter: This should pick up "Poetry"...
- Working directory: /..../answerbook-api
Basic Poetry usage here: https://python-poetry.org/docs/basic-usage/