-
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-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
.