Format du readme

This commit is contained in:
bglacial 2019-01-16 23:32:21 +01:00
parent 8268abaaf8
commit 7708e71977

View File

@ -1,33 +1,33 @@
# Installation # Installation
##Prepare database ###Prepare database
python3 manage.py makemigrations python3 manage.py makemigrations
##Create admin tables ###Create admin tables
python3 manage.py migrate python3 manage.py migrate
###Populate the database ###Populate the database
python3 manage.py loaddata fixtures/db.json python3 manage.py loaddata fixtures/db.json
##Create admin user ###Create admin user
python3 manage.py createsuperuser --email admin@gmail.com --username admin python3 manage.py createsuperuser --email admin@gmail.com --username admin
##Prepare database for timelaps ###Prepare database for timelaps
python3 manage.py makemigrations timelaps python3 manage.py makemigrations timelaps
##migrate timelaps ###migrate timelaps
python3 manage.py migrate python3 manage.py migrate
# Exploitation # Exploitation
##Exécuter les tests ###Exécuter les tests
python3 manage.py test python3 manage.py test
coverage run --source='.' manage.py test coverage run --source='.' manage.py test
coverage html coverage html
coverage report coverage report
##Lancement du server ###Lancement du server
cd /mnt/d/Dev/Applications/timelaps_api cd /mnt/d/Dev/Applications/timelaps_api
service postgresql start service postgresql start