Skip to content

Installation

Lawrence Liu edited this page Mar 2, 2016 · 4 revisions
    pip install -r requirements.txt
  • Run the follow script to install dependencies for development time
    pip install -r test_requirements.txt
  • Set environment variable DATABASE_URL for database connection:
export DATABASE_URL=postgres://<DB_USERNAME>:<DB_PASSWORD>@localhost:5432/<DB_NAME>
  • Run DB migration to create all the database tables
python manage.py db upgrade
  • Start the app using one of the follow method depends on your environment:
# Raw python
python start.py
# Using heroku foreman 
heroku local
  • Login to admin page http://:/admin using default user(support@betterlife.io/password) and create necessary enum values according to page System Init Enum Values