Web app API for janus-core
Clone the repository from Github and then install the dependencies with uv, after following the instructions recorded here to install uv: https://docs.astral.sh/uv/getting-started/installation/
git clone git@github.com:stfc/janus-api.git
cd janus-api
uv syncOnce you've installed dependencies, copy config-template.ini, renaming the copy config.ini, and change the variables as required. The default setup will allow you to run the server locally.
Before beginning development make sure to install the pre-commit:
pre-commit installActivate the venv and start API with main:
source .venv/bin/activate
python janus_api/main.py