Flask App Starter Template
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
.gitignore
README.md
requirements.txt
run.py

README.md

Flask App Starter Template

Features

  • Templates: Landing, Sign up, Sign in, Password reset, Home, Account
  • User Authentication and Authorization: Create an account, sign in, and log out.
  • Form Validation. Ensure quality data.
  • Password Encryption. Securely store user credentials.
  • Model: Basic user model ready.
  • Flash Messages. Confirm user actions.

Installation

Initialize a virtual environment:

python -m venv venv
venv\Scripts\activate.bat

Installing packages with pip:

pip install -r requirements.txt

Open the Python interpreter:

python

Import the database variable from the app.

>>> from app import db

Initialize the database tables.

>>> db.create_all()

Exit out of the Python interpreter

>>> exit()

Basic Usage

Modify __init__.py

Application secret key:

app.secret_key = "YOUR-SECRET-KEY"

Database table file name:

app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///YOUR-TABLE-NAME.db"

Application name:

app_name = "YOUR-APP-NAME"