This is the Backend for the ARCmanager. It runs with FastAPI and uvicorn.
Both need to be installed first:
pip install fastapi
pip install "uvicorn[standard]"
To run the server first activate your virtual environment
Then install the dependencies from requirements.txt with:
pip install -r requirements.txt
For development run:
uvicorn main:app --reload
For production run:
uvicorn main:app
For local development change the code in authentication.py to:
backend_address = "http://localhost:8000/arcmanager/api/v1/auth/"
# backend_address = "https://nfdi4plants.de/arcmanager/api/v1/auth/"
redirect = "http://localhost:5173"
# redirect = "https://nfdi4plants.de/arcmanager/app/index.html"
To test the backend, browse to: localhost.
Most requests require you to be logged in.