Skip to content

danielsilverstone-ct/backend

 
 

Repository files navigation

Flathub website backend

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

Development

Prerequisites

  • Docker
  • Docker-compose

Running

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

Accessing redis

You can use a redis tool of your choice to interact with the database. Just connect to localhost:6379.

Running the smoketests locally

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.6%
  • Dockerfile 2.4%