Flask Dashboard Modular Admin

Open-Source Admin Dashboard coded in Flask Web Framework on top of Modular Admin Dashboard design, crafted by Creative-Tim agency. Dashboard features:


Flask Dashboard ModularAdmin - Open-Source Flask Dashboard.


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. Thank you!


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


Build from sources


$ # Clone the sources
$ git clone https://github.com/app-generator/flask-dashboard-modular-admin.git
$ cd flask-dashboard-modular-admin
$
$ # Virtualenv modules installation (Unix based systems)
$ virtualenv --no-site-packages env
$ source env/bin/activate
$
$ # Virtualenv modules installation (Windows based systems)
$ # virtualenv --no-site-packages env
$ # .\env\Scripts\activate.bat
$ 
$ # Install requirements
$ pip3 install -r requirements.txt
$
$ # 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"
$
$ # Run the application
$ # --host=0.0.0.0 - expose the app on all network interfaces (default 127.0.0.1)
$ # --port=5000    - specify the app port (default 5000)  
$ flask run --host=0.0.0.0 --port=5000
$
$ # Access the app in browser: http://127.0.0.1:5000/


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 Dashboard Modular Admin  # application root folder
    |
    |--- app/                     # application folder  
    |--- app/__init__.py          # application constructor  
    |--- app/configuration.py     # application config  
    |--- app/forms.py             # application forms  
    |--- app/models.py            # application models  
    |--- app/views.py             # application routing
    |  
    |--- requirements.txt         # Requirements for development - SQLite storage
    |--- run.py                   # bootstrap the app
    |
    |-----------------------------


Support



Resources