No description
Find a file
2017-01-10 16:27:11 +01:00
bin Project name 2016-12-09 06:13:01 +01:00
docs Project name 2016-12-09 06:13:01 +01:00
publichealth Joni's entry 2016-12-23 17:52:12 +01:00
vagrant Vagrant provisioning and README 2016-12-14 10:43:06 +01:00
.bowerrc Bootstrap SASS theme 2016-12-12 23:43:20 +01:00
.editorconfig Bootstrap SASS theme 2016-12-12 23:43:20 +01:00
.gitignore Bootstrap SASS theme 2016-12-12 23:43:20 +01:00
bower.json Moved paper into repo, reduced deps 2016-12-19 11:32:58 +01:00
config.codekit3 Joni's entry 2016-12-23 17:52:12 +01:00
fabfile.py Project name 2016-12-09 06:13:01 +01:00
Gruntfile.js Bootstrap SASS theme 2016-12-12 23:43:20 +01:00
manage.py Project name 2016-12-09 06:13:01 +01:00
package.json Bootstrap SASS theme 2016-12-12 23:43:20 +01:00
Procfile Project name 2016-12-09 06:13:01 +01:00
readme.md Merge branch 'master' of github.com:loleg/public-health-ch into frontpage-initial 2017-01-10 16:27:11 +01:00
requirements.txt Initial page model with translation support 2016-12-09 06:54:14 +01:00
runtime.txt Initial from torchbox/cookiecutter-wagtail 2016-12-09 06:11:31 +01:00
stellar.yaml Project name 2016-12-09 06:13:01 +01:00
Vagrantfile Project name 2016-12-09 06:13:01 +01:00

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 libjpeg-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 -g bower grunt-cli
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.