Skip to content

gingeleski/flask-skeleton

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Skeleton

Windows-oriented Flask starter application.

Quick Start

Basics

  1. Create and activate a virtualenv
  2. Install the requirements
git clone <this_repo>
cd <this_repo>

virtualenv env

.\env\scripts\activate.ps1

Set Environment Variables

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

set-variable -name "APP_SETTINGS" -value "project.server.config.DevelopmentConfig"

or

set-variable -name "APP_SETTINGS" -value "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:

set-variable -name "FLASK_DEBUG" -value True; python manage.py run

Without debug mode:

set-variable -name "FLASK_DEBUG" -value False; 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

Windows-oriented Flask starter application.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 69.9%
  • HTML 29.5%
  • Other 0.6%