alejandroandreu / flask-skeleton

Real Python Flask Starter Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask Skeleton

Flask starter project...

Build Status

Quick Start

Basics

  1. Create and activate a virtualenv
  2. Install the requirements

Set Environment Variables

Update project/server/config.py, and then run:

$ export APP_SETTINGS="project.server.config.DevelopmentConfig"

or

$ export APP_SETTINGS="project.server.config.ProductionConfig"

Create DB

$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_admin
$ python manage.py create_data

Run the Application

With debug mode:

$ export FLASK_DEBUG=1 && python manage.py run

Without debug mode:

$ export FLASK_DEBUG=0 && python manage.py run

Access the application at the address http://localhost:5000/

Testing

Without coverage:

$ python manage.py test

With coverage:

$ python manage.py cov

About

Real Python Flask Starter Project

License:MIT License


Languages

Language:Python 71.0%Language:HTML 28.4%Language:JavaScript 0.4%Language:CSS 0.2%