No description
bin | ||
docs | ||
publichealth | ||
vagrant | ||
.bowerrc | ||
.editorconfig | ||
.gitignore | ||
bower.json | ||
fabfile.py | ||
Gruntfile.js | ||
manage.py | ||
package.json | ||
Procfile | ||
readme.md | ||
requirements.txt | ||
runtime.txt | ||
stellar.yaml | ||
Vagrantfile |
Public Health Schweiz
Website of the Swiss Society for Public Health
Development environment
The easiest way to set up your machine would be to use Vagrant, then in the project folder in the terminal type:
vagrant liverun
Backend setup
After installing Python 3, from the project folder:
sudo apt-get install python3-venv python3-dev
pyvenv env
. env/bin/activate
pip install -U pip
pip install -r requirements.txt
./manage.py migrate
./manage.py createsuperuser
You will be asked a few questions to create an administrator account.
Frontend setup
Make sure a recent version of node.js is installed, then:
npm install
npm install -g bower grunt-cli
bower install
Starting up
Run this after completing setup:
./manage.py runserver
grunt browser-sync
If you have one installed, also start your local redis server.