WebRTC online meeting app
Get the repo
$ git clone [email protected]:Brunux/djnar.git && cd djnar
Create a virtual environment with Virtualenv or use your favorite tool.
$ pip install virtualenv
$ virtualenv venv
$ source venv/bin/active
Install dependencies
$ pip install -r requirements/local.txt
Create a exclusive Postgres DB docker instance
$ docker run -d \
--name djinar \
-e POSTGRES_USER=django \
-e POSTGRES_PASSWORD=4dm1n4dm1n \
-e POSTGRES_DB=djinar
-p 25432:5432
postgres
Or update Django settings
# djinar/config/settings/local.py
...
DATABASES = {
# Raises ImproperlyConfigured Exception
# if DATABASE_URL Not in os.environ and
# the "default" argument is not defined.
# The DATABASE_URL environment variables
# expect a value in the following format:
# DATABASE_URL=postgres://user:password@hostname_or_ip:port/database_name
"default": env.db(
"DATABASE_URL", default="postgres://django:4dm1n4dm1n@localhost:25432/djinar"
)
}
Apply migrations
$ python manage.py migrate
Run the tests with nice report
$ coverage run -m pytest
Check tests coverage
$ coverage report
Run development server
$ python manage.py runserver 0:8000
Open the webinar interface
http://localhost:8000/
For more information, see TODO.