-
Notifications
You must be signed in to change notification settings - Fork 2
Local development
Michael Gecht edited this page Nov 11, 2017
·
2 revisions
For local development, one needs to install Docker and docker-compose.
First, clone the repository:
git clone https://github.com/mimischi/django-clock.git --branch develop
cd django-clockNext build the web (django) and db (postgres) containers:
make buildRun all database migrations to create the needed database scheme.
docker-compose run --rm web python manage.py migrateNow that both containers are built, create a superuser. This way, you can access the admin page.
docker-compose run --rm web python manage.py createsuperuserYou're now ready to actually start the container and edit some code!
docker-compose up -dThe web page is available via localhost:8000.