- Install PostgreSQL
- Create Database
create database librarian;
- Install Python
- Install Setuptools and pip (see guide above)
export FLASK_APP=/path/to/app.py
export FLASK_DEBUG=1
export FLASK_RUN_PORT=3000
export DATABASE_URL="postgresql://localhost:5432/librarian?user=postgres&password=postgres"
- Install Virtualenv (acconplish this by running
pip install virtualenv
) - Run
virtualenv venv
- Run
source venv/bin/activate
on Mac OS X/Linux orvenv\Scripts\activate.bat
on windows - Run
pip install -r requirements.txt
- Migrate database
flask db upgrade
- Run
flask run
- Visit http://localhost:3000
flask db migrate
flask test
cd react_app && CI=true yarn test
- Install the cf CLI
- Run
cf push
- Visit the given URL