Skip to content

keyz182/flask-login-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Template Project

Introduction

This is a Flask template project which utilizes flask-login, and flask-sqlalchemy, along with sqlalchemy-migration. All code for needed user authorization is in place. By default, an sqlite database is used.

Installation

On Linux:

git clone https://github.com/keyz182/flask-login-template.git
cd flask-login-template
virtualenv flask
./flask/bin/pip install -r requirements.txt
./flask/bin/python run.py runserver

Usage

$ ./flask/bin/python run.py
Please provide a command:
  createdb     Create the user database
  debugserver  Runs the Flask development server i.e. app.run()
  downgradedb  Downgrade the user database
  initdb       Initialise the user database with test data
  migratedb    Migrate the user database to the latest version
  resetdb      Reset the user database to defaults
  runserver    Runs the Flask development server i.e. app.run()
  shell        Runs a Python shell inside Flask application context.
  upgradedb    Upgrade the user database

TODOs

  • Upload to github
  • Document/Comment.
  • Try to remember why I'm using a dev version of sqlalchemy_migrate

About

A template project that includes all that's needed for a flask application with user authentication

Resources

Stars

Watchers

Forks

Packages

No packages published