docker, docker-compose
$ cd /path/to/project
$ cp -r sample/env .env
Change the credentials in .env/db.env and .env/django.env to something
secure
$ docker compose up -d
NOTE: Add
--buildif you want to build the image from source
Either:
$ docker compose exec web python manage.py migrate
to start off with an empty user database
or
$ cat sample/db.sql | docker compose exec -T db psql -U postgres -d postgres
to restore the included sample database
NOTE: If you have changed
DATABASE_DBand/orDATABASE_USERin.env/db.envthen the above command will have to be modified to reflect that
Navigate to http://localhost:8000/api/docs to experiment with the API
$ docker compose run --rm --build web python manage.py test
$ gh attestation verify oci://index.docker.io/gamefuzzy/map-search -R GameFuzzy/map-search