Skip to content

Development Environment

Rodrigo Oliveira edited this page Sep 13, 2018 · 5 revisions

Introduction

One of our concerns was to create an easy way to start a development server, so everyone interested can easily contribute with this project. We also aim to make the deploy of this application as painless possible for everyone who desires one instance of Jandig Arte.

Docker

Our main tool for reach all goals above is [Docker](https://www.docker.com/). With Docker we can start our entire environment with a single command and also isolate the development environment from your physical machine (this also help our deployment).

Django

We use [Django](https://www.djangoproject.com/) as our web framework to manage our backend logic, but the standard django development server runs with HTTP and because we use WebRTC protocol (that demands an secure connection) for access the camera of the device we nedd an HTTPS server. To run an HTTPS server locally we use [Django SSL-Server](https://github.com/teddziuba/django-sslserver) and it work very well for WebRTC protocol but service workers that are used to implement the PWA doesn't accept this local HTTPS and at this moment service workers can only be tested on a production HTTPS server.

Clone this wiki locally