33 lines
540 B
Markdown
33 lines
540 B
Markdown
cd /mnt/d/Dev/Applications/timelaps_api
|
|
|
|
service postgresql start
|
|
service apache2 start
|
|
|
|
#
|
|
# 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
|
|
python3 manage.py runserver |