2016-12-09 05:11:31 +00:00
|
|
|
Public Health Schweiz
|
|
|
|
=====================
|
|
|
|
|
2016-12-12 22:43:20 +00:00
|
|
|
Website of the Swiss Society for Public Health
|
|
|
|
|
|
|
|
## Development environment
|
|
|
|
|
|
|
|
Backend setup
|
|
|
|
|
|
|
|
```
|
2016-12-19 10:32:58 +00:00
|
|
|
sudo apt-get install python3-venv python3-dev libjpeg-dev
|
2016-12-09 05:11:31 +00:00
|
|
|
pyvenv env
|
|
|
|
. env/bin/activate
|
2016-12-09 05:54:14 +00:00
|
|
|
|
2016-12-09 05:11:31 +00:00
|
|
|
pip install -U pip
|
|
|
|
pip install -r requirements.txt
|
2016-12-09 05:54:14 +00:00
|
|
|
|
|
|
|
./manage.py migrate
|
|
|
|
./manage.py createsuperuser
|
|
|
|
./manage.py runserver
|
2016-12-12 22:43:20 +00:00
|
|
|
```
|
2016-12-12 22:44:06 +00:00
|
|
|
|
|
|
|
Frontend setup
|
|
|
|
|
|
|
|
```
|
2016-12-19 10:32:58 +00:00
|
|
|
npm install -g bower grunt-cli
|
2016-12-12 22:44:06 +00:00
|
|
|
npm install
|
|
|
|
bower install
|
|
|
|
grunt browser-sync
|
|
|
|
```
|