To run tests independent of your setup, do:
docker compose run tests- Clone this repository &
cdinto it - Ensure you are on python 3.12 - we recommend using
pyenvto manage python versions:pyenv install 3.12pyenv local 3.12 - Install dependencies using
poetry:poetry installpoetry 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/