Skip to content
Flask Boilerplate - Material Kit Design | AppSeed
CSS HTML JavaScript Python
Branch: master
Clone or download
Adi Chirilov
Latest commit 122ab68 Nov 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Minor changes - Code formatting Nov 15, 2019
.gitignore Minor changes - Code formatting Nov 15, 2019
LICENSE.md Initial import Sep 7, 2019
README.md Minor changes - Code formatting Nov 15, 2019
deploy.js Initial import Sep 7, 2019
package.json Minor changes - Code formatting Nov 15, 2019
requirements.txt Initial import Sep 7, 2019
run.py Minor changes - Code formatting Nov 15, 2019
static.py Minor changes - Code formatting Nov 15, 2019

README.md

Flask Material Kit

Open-Source Web App coded in Flask Web Framework on top of Material Kit design, crafted by Creative-Tim agency. Features:

  • SQLite
  • SQLAlchemy ORM
  • Session-Based authentication (via flask_login)
  • Forms validation
  • License MIT

Flask Material Kit - Open-Source Web App coded in Flask.

Setup the environment

In order to use the boilerplate, we need Python3 and virtualenv python library.


Note: Python2 is not supported, the EOL of this version announced here. In order to use our kits, please migrate to Pyhton3.


$ # Test the Python install
$ python --version
$ Python 3.7.2
$
$ # install Virtualenv using PIP
$ pip3 install virtualenv

Build from sources

$ # 1. Get the code
$ git clone https://github.com/app-generator/flask-material-kit.git
$ cd flask-material-kit
$
$ # Install modules using a virtualenv (Unix based systems)
$ virtualenv --no-site-packages env
$ source env/bin/activate
$
$ # Install modules using a virtualenv (Windows based systems)
$ # virtualenv --no-site-packages env
$ # .\env\Scripts\activate.bat
$ 
$ # 2. Install requirements
$ pip3 install -r requirements.txt
$
$ # 3. Set the FLASK_APP environment variable
$ (Unix/Mac) export FLASK_APP=run.py
$ (Windows) set FLASK_APP=run.py
$ (Powershell) $env:FLASK_APP = ".\run.py"
$
$ # Create SQLite database using the Flask console
$ flask shell
>> from app import db
>> db.create_all()
>> quit()
$ # SQLite database.db should be created in the app folder:
$ # app\database.db
$
$ # 4. Run the application
$ flask run --host=0.0.0.0
$
$ # 5. Go to http://127.0.0.1:5000/, create an account and log in

Project Structure

The boilerplate code is built with a modular structure that follows the recommended pattern used by many open-source projects. The most important files / directories are listed bellow:


< ROOT > - Flask Material Kit        # application root folder
    |
    |--- app/__init__.py          # application constructor  
    |--- app/views.py             # implement app routing
    |--- app/models.py            # define app models
    |--- app/forms.py             # forms used for login and registration
    |
    |--- requirements.txt         # App Requirements
    |
    |--- run.py                   # bootstrap the app
    |
    |-----------------------------

Support


Links & Resources



Flask Material Kit - provided by AppSeed

You can’t perform that action at this time.