This is the fastapi based backend for https://www.flathub.org Not the backend for flathub itself. Go here, if your looking for that https://github.com/flathub/flathub
- Docker
- Docker-compose
Start the database:
docker-compose up
You need to seed the database:
curl -X POST localhost:8000/update
If you change any files, the server should restart and you should be able to see the changes.
If you want to explore the endpoints, you can use the UI: https://localhost:8000/docs
You can use a redis tool of your choice to interact with the database. Just connect to localhost:6379.
If you want to run the smoketests locally, you can use the following commands:
docker-compose run smoketests
You might need to flush your redis database before running the tests. As it assumes that the database is empty.