Development setup
In the development setup the docker compose file docker-compose.dev.yml is used to run only the databases as services. The dataloader and frontend are then run locally outside of docker.
Environment Variables for docker compose
The env variables are similar to the compose setup: you have to set:
Dev setup of docker compose
The development setup has it's own docker compose file docker-compose.dev.yml.
Dev setup of the dataloader backend
The backend needs now its own backend.env as follows:
# External Service settings:
# must match the docker compose settings for the services
SOLR_URL=http://localhost:8010/solr/debates/
S3_ACCESS_KEY=
S3_SECRET_KEY=
# Use this for local
API_HOST="127.0.0.1"
MONGO_URL=
S3_SERVER=http://localhost:9000
FRONTEND_SERVER=http://localhost:5173
# Use this for compose
S3_FRONTEND_BASE_URL=
# this is for the PROD S3
PROD_S3_BUCKET_NAME=
PROD_S3_ACCESS_KEY=
PROD_S3_SECRET_KEY=
PROD_S3_REGION_NAME=
The PROD_S3_* are there for the transfer of data from the Pipeline S3 to the App S3.
After you have loaded the data into the App S3, you can build the backend and then serve the backend api:
Dev setup of the frontend
You need to adapt the frontend/.env:
After that install and mount the frontend with:
The frontend should now be up and running and tell you the url where it is available
Load data
See compose setup
Dev setup of the documentation
The docs are powered by uv ⧉ as python package manager and Material for Mkdocs ⧉ as documentation package