Skip to content
Michael Gecht edited this page Nov 11, 2017 · 2 revisions

Introduction

For local development, one needs to install Docker and docker-compose.

Getting started

First, clone the repository:

git clone https://github.com/mimischi/django-clock.git --branch develop
cd django-clock

Next build the web (django) and db (postgres) containers:

make build

Run all database migrations to create the needed database scheme.

docker-compose run --rm web python manage.py migrate

Now that both containers are built, create a superuser. This way, you can access the admin page.

docker-compose run --rm web python manage.py createsuperuser

You're now ready to actually start the container and edit some code!

docker-compose up -d

The web page is available via localhost:8000.

Clone this wiki locally