First commit of the V2.
New base, new info.
This commit is contained in:
18
readme.md
18
readme.md
@ -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
|
||||
|
Reference in New Issue
Block a user