No description
  • JavaScript 63.6%
  • CSS 24.7%
  • Python 11.5%
  • Dockerfile 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
bglacial 441f273b7e Adding TIME_ZONE paris
Changing view post relays items
2019-04-29 23:07:02 +02:00
api Adding TIME_ZONE paris 2019-04-29 23:07:02 +02:00
music First commit of the V2. 2019-04-18 00:58:59 +02:00
nginx First commit of the V2. 2019-04-18 00:58:59 +02:00
static First commit of the V2. 2019-04-18 00:58:59 +02:00
timelaps Adding TIME_ZONE paris 2019-04-29 23:07:02 +02:00
.gitignore Adding TIME_ZONE paris 2019-04-29 23:07:02 +02:00
1000.sql First commit of the V2. 2019-04-18 00:58:59 +02:00
db.sqlite3 Changing gitignore and __str__ for Driver model 2019-04-21 01:04:24 +02:00
docker-compose.yml First commit of the V2. 2019-04-18 00:58:59 +02:00
Dockerfile First commit of the V2. 2019-04-18 00:58:59 +02:00
manage.py First commit of the V2. 2019-04-18 00:58:13 +02:00
readme.md First commit of the V2. 2019-04-18 00:58:13 +02:00
requirements.txt Add routes and custom serialiser 2019-04-18 21:43:22 +02:00

Installation

###Prepare database python manage.py makemigrations

###Create admin tables python manage.py migrate

###Populate the database python manage.py loaddata fixtures/db.json

###Dump the database into file python manage.py dumpdata > fixtures/db.json

###Create admin user python manage.py createsuperuser --email admin@gmail.com --username admin

###Prepare database for timelaps python manage.py makemigrations timelaps

###migrate timelaps python manage.py migrate

Exploitation

###Exécuter les tests python manage.py test

coverage run --source='.' manage.py test coverage html coverage report

###Lancement du server cd /mnt/d/Dev/Applications/timelaps_api

service postgresql start service apache2 start

python manage.py runserver