-
Install dependencies
- PostgreSQL
- Python >= 3.10
-
Install the package
git clone [email protected]:open-reaction-database/ord-app.git cd ord-app pythom -m pip install -e ".[tests]"
-
Run the FastAPI server
cd ord_app/api ORD_APP_TESTING=TRUE fastapi dev main.py
This creates a test PostgreSQL database and starts the server at http://localhost:8000. Navigate to http://localhost:8000/docs for the interactive Swagger docs.
Python tests are written with pytest
:
pytest -vv