32 lines
540 B
Markdown
32 lines
540 B
Markdown
|
|
|
|
# Installation
|
|
|
|
##Prepare database
|
|
python3 manage.py makemigrations
|
|
|
|
##Create admin tables
|
|
python3 manage.py migrate
|
|
|
|
##Create admin user
|
|
python3 manage.py createsuperuser --email admin@gmail.com --username admin
|
|
|
|
##Prepare database for timelaps
|
|
python3 manage.py makemigrations timelaps
|
|
|
|
##migrate timelaps
|
|
python3 manage.py migrate
|
|
|
|
# Exploitation
|
|
|
|
##Exécuter les tests
|
|
python3 manage.py test
|
|
|
|
##Lancement du server
|
|
cd /mnt/d/Dev/Applications/timelaps_api
|
|
|
|
service postgresql start
|
|
service apache2 start
|
|
|
|
python3 manage.py runserver
|