-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Lawrence Liu edited this page Mar 2, 2016
·
4 revisions
-
Clone the code from github https://github.com/betterlife/flask-psi.git or download latest release from https://github.com/betterlife/flask-psi/releases
-
cd to the downloaded folder, if you are using virtual env, then init a virtual env.
-
Run the follow script to install dependencies for runtime
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