-
Create your virtual environment inside project's root:
$ cd /path/to/repo/ && virtualenv venv -
Activate your virtualenv:
$ . /venv/bin/activate -
Install the requirements:
$ pip install -r requirements.txt -
If you're an unfortunate Ubuntu user who can't get pip to install psycopg2, please run this:
$ sudo apt-get install build-essential && sudo apt-get build-dep python-psycopg2 && pip install -r requirements.txt -
Set up Postgres:
$ brew install postgresql -
Configure your .env file. An example has been set up for you:
$ cp env.example .env -
Sync your database:
$ python manage db upgrade -
Create an admin user:
$ python manage create_admin <email> <password> -
Run your app:
$ python run -
Access your admin interface at http://localhost:5000
accordeiro/flask-skeleton
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|