First commit of the V2.

New base, new info.
This commit is contained in:
2019-04-18 00:58:13 +02:00
parent 798ddf40e8
commit 698b6dd865
53 changed files with 394 additions and 5723 deletions

View File

@ -1,30 +1,30 @@
# Installation
###Prepare database
python3 manage.py makemigrations
python manage.py makemigrations
###Create admin tables
python3 manage.py migrate
python manage.py migrate
###Populate the database
python3 manage.py loaddata fixtures/db.json
python manage.py loaddata fixtures/db.json
###Dump the database into file
python3 manage.py dumpdata > fixtures/db.json
python manage.py dumpdata > fixtures/db.json
###Create admin user
python3 manage.py createsuperuser --email admin@gmail.com --username admin
python manage.py createsuperuser --email admin@gmail.com --username admin
###Prepare database for timelaps
python3 manage.py makemigrations timelaps
python manage.py makemigrations timelaps
###migrate timelaps
python3 manage.py migrate
python manage.py migrate
# Exploitation
###Exécuter les tests
python3 manage.py test
python manage.py test
coverage run --source='.' manage.py test
coverage html
@ -36,4 +36,4 @@ cd /mnt/d/Dev/Applications/timelaps_api
service postgresql start
service apache2 start
python3 manage.py runserver
python manage.py runserver