- Setup db
createuser -P pythonph
# You will be prompted to enter a password
# Enter what you set in POSTGRES_PASSWORD
createdb -O pythonph pythonph
- Setup virtualenv
mkvirtualenv venv
venv/bin/pip install -r requirements.txt
- Setup npm
npm install
- Create
dev.env
SECRET_KEY=secret
ENV=DEV
POSTGRES_USER=pythonph
POSTGRES_PASSWORD=password
SLACK_ORG=pythonph
SLACK_API_TOKEN=xxxx-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxx
SLACK_BOARD_CHANNEL=pythonph
SLACK_JOBS_CHANNEL=jobs
- Setup Django
bin/localmanage migrate
bin/localmanage createsuperuser
- Run server
npm start
./bin/build-dev
./bin/deploy-dev
Note: For this setup, you have to run ./bin/build-dev && ./bin/deploy-dev
for changes to reflect.
- Improve dockerized development setup