ARCHIVED: Development for this project has moved to https://gitlab.com/geometalab/osmaxx
All issues should have been moved as well.
Django-based Web Frontend for osmaxx.
- Project Repository (Git)
- Project Development Environment (Docker)
- Commonly used commands for development
- Testing
We do not recommend to run the application local on your machine but it's possible. We recommend to use the development docker containers.
To run this project locally, you need sufficiently recent versions of docker and docker-compose installed.
Development is being done using docker and docker-compose. you should be able to start it with docker-compose up --build.
Copy the environment folder compose-env-dist to compose-env and adapt the latter's content.
cp -r compose-env-dist compose-env
# Then, edit compose-env/*.envFor the rest of the readme, if in development:
- set
DEPLOY_VERSIONtolocal(export DEPLOY_VERSION=local) - use
docker-compose -f docker-compose.yml -f docker-compose-dev.yml
or source the helper script source activate_local_development. This enables to use docker-compose without
all the -f options and without needing to specify DEPLOY_VERSION.
To setup all the containers and their dependencies by hand, run
docker-compose buildIn production, you should be setting DEPLOY_VERSION=xxx before running any of the commands below, where xxx is
the version you'd like to deploy.
The rest of the documentation can be followed independently if on production or on development.
Update the containers
docker-compose pullThen initiate the project defaults by running the following command:
docker-compose run frontend /bin/bash -c './manage.py createsuperuser'Alternative to this command, bootstrap the container and execute the commands inside the container by hand:
docker-compose run frontend /bin/bashInside the container:
- (optional, recommended) setup a superuser:
$ ./manage.py createsuperuser
Start the containers using docker compose:
docker-compose upUnsure which version is running?
Go to <your_ip>:8889/version/.
where <your_ip> is your public IP.
Can be found under Testing.
See Wiki: https://github.com/geometalab/osmaxx/wiki
relation "django_site" does not exist
LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
You forgot to run the migrations
Do not run docker-compose build --no-cache. Use docker-compose rm -f && docker-compose build, or
if you really want to start clean, remove all docker containers
docker rm -f $(docker ps -q)
and remove all images
docker rmi -f $(docker images -q)
WARNING: This removes all containers/images on the machine and is discouraged in production.