-
Prepare the web client with the following steps:
a. Run
cp dev/.env.web.example dev/.env.web.b. Edit
dev/.env.weband supply a valid MapTiler API key. To sign up for a free MapTiler API key, visit https://docs.maptiler.com/cloud/api/authentication-key/.c. Install client dependencies by running
cd web && npm i. -
Run the docker containers with
docker compose up. Be sure to check that all containers were able to start and stay running successfully before continuing. -
While the containers are up, run the following commands in a separate terminal to prepare the database:
a. Run
docker compose run --rm django ./manage.py migrate.b. Run
docker compose run --rm django ./manage.py createsuperuserand follow the prompts to create your own user.c. Run
docker compose run --rm django ./manage.py makeclientto create a client Application object for authentication.d. Run
docker compose run --rm django ./manage.py populateto use sample data.
- Run
docker compose up. - You can access the admin page at port 8000: http://localhost:8000/admin/
- The user interface is on port 8080: http://localhost:8080/
- When finished, use
Ctrl+Cto stop the docker compose command.
Occasionally, new package dependencies or schema changes will necessitate maintenance. To non-destructively update your development stack at any time:
- Run
docker compose pull - Run
docker compose build --pull --no-cache - Run
docker compose run --rm django ./manage.py migrate