Skip to content

pandabearcoder/pythonph

 
 

Repository files navigation

PythonPH

Development Setup

  1. Setup db
createuser -P pythonph
# You will be prompted to enter a password
# Enter what you set in POSTGRES_PASSWORD
createdb -O pythonph pythonph
  1. Setup virtualenv
mkvirtualenv venv
venv/bin/pip install -r requirements.txt
  1. Setup npm
npm install
  1. 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
  1. Setup Django
bin/localmanage migrate
bin/localmanage createsuperuser
  1. Run server
npm start

Development Setup via docker-compose

  1. ./bin/build-dev
  2. ./bin/deploy-dev

Note: For this setup, you have to run ./bin/build-dev && ./bin/deploy-dev for changes to reflect.

Todo

  1. Improve dockerized development setup

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.3%
  • HTML 21.6%
  • JavaScript 13.3%
  • SCSS 11.4%
  • Shell 1.5%
  • Dockerfile 0.9%