Skip to content

app-generator/flask-datta-able-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

Premium Flask Dashboard generated by AppSeed op top of a modern design. Datta Able PRO Bootstrap PRO is the most stylised Bootstrap 5 Admin Template, around all other Lite/Free admin templates in the market. It comes with high feature-rich pages and components with fully developer-centric code. Before developing Datta Able our key points were performance and design.

Features

  • Up-to-date dependencies
  • Apps
    • DataTables
    • API
    • Charts
    • Media Files Manager
  • Database: SQLite, MySql
    • Silent fallback to SQLite
  • DB Tools: SQLAlchemy ORM, Flask-Migrate
  • Authentication, Session Based
  • Docker, Page Compression via Flask-Minify
  • CI/CD flow via Render

Datta Able PRO - Full-Stack Starter generated by AppSeed.


Start in Docker

👉 Unzip sources or clone the private repository (requires a purchase)

$ unzip flask-datta-able-pro.zip
// OR
$ git clone https://github.com/app-generator/priv-flask-datta-able-pro.git
$ cd priv-flask-datta-able-pro

Start the APP in Docker

# Optional (kill all existing containers)
$ docker container kill $(docker ps -q) ; docker container rm $(docker ps -a -q) ; docker network prune -f 
# Start the APP
$ docker-compose up --build 

Visit http://localhost:5085 in your browser. The app should be up & running.

  • Default User: test / test@appseed.us / pass (the password)

Authenticated users can access all apps and pages.


Manual Build

👉 Set Up for Unix, MacOS

Install modules via VENV

$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt

Set Up Flask Environment

$ export FLASK_APP=run.py
$ export FLASK_ENV=development

Start the app

$ flask run

At this point, the app runs at http://127.0.0.1:5000/.


👉 Set Up for Windows

Install modules via VENV (windows)

$ virtualenv env
$ .\env\Scripts\activate
$ pip3 install -r requirements.txt

Set Up Flask Environment

$ # CMD 
$ set FLASK_APP=run.py
$ set FLASK_ENV=development
$
$ # Powershell
$ $env:FLASK_APP = ".\run.py"
$ $env:FLASK_ENV = "development"

Start the app

$ flask run

At this point, the app runs at http://127.0.0.1:5000/.


👉 Create Users

By default, the app redirects guest users to authenticate. In order to access the private pages, follow this set up:

  • Start the app via flask run
  • Access the registration page and create a new user:
    • http://127.0.0.1:5000/register
  • Access the sign in page and authenticate
    • http://127.0.0.1:5000/login

✅ Codebase

The project has a simple, intuitive structure presented bellow:

< PROJECT ROOT >
   |
   |-- apps/
   |    |
   |    |-- home/                           # A simple app that serve HTML files
   |    |-- authentication/                 # Handles auth routes (login and register)
   |    |-- charts/                         # Showcase the sales information in Charts 
   |    |-- tables/                         # Showcase the sales information in dataTables 
   |    |
   |    |-- static/
   |    |    |-- <css, JS, images>          # CSS files, Javascripts files
   |    |
   |    |-- templates/                      # Templates used to render pages
   |    |    |-- includes/                  # HTML chunks and components
   |    |    |-- layouts/                   # Master pages
   |    |    |-- accounts/                  # Authentication pages
   |    |    |-- pages/                      # UI Kit Pages
   |    |
   |  config.py                             # Set up the app
   |    __init__.py                         # Initialize the app
   |
   |-- requirements.txt                     # App Dependencies
   |
   |-- .env                                 # Inject Configuration via Environment
   |-- run.py                               # Start the app - WSGI gateway
   |
   |-- ************************************************************************

Datta Able PRO Flask - Starter provided by AppSeed.