Giter Club home page Giter Club logo

app-generator / flask-black-dashboard Goto Github PK

View Code? Open in Web Editor NEW
346.0 10.0 141.0 9.57 MB

Flask Black Dashboard - Open-source seed project | AppSeed

Home Page: https://appseed.us/product/black-dashboard/flask/

License: Other

Dockerfile 0.04% Python 1.61% HTML 14.21% CSS 41.37% JavaScript 3.39% SCSS 39.37% Shell 0.01%
black-dashboard dark-design flask-bootstrap4 flask-bs4 black-admin-flask black-dashboard-flask flask-black-admin flask-black-dashboard flask-bootstrap-app

flask-black-dashboard's Introduction

Open-source Flask Dashboard crafted on top of a modern Bootstrap design. Designed for those who like bold elements and beautiful websites, Black Dashboard is ready to help you create stunning websites and web apps. Black Dashboard is built with over 50 frontend individual elements, like buttons, inputs, navbars, nav tabs, cards, or alerts, giving you the freedom of choosing and combining.


Features

Have questions? Contact Support (Email & Discord) provided by AppSeed

Free Version PRO Version Custom Development
โœ“ Up-to-date dependencies Everything in Free, plus: Everything in PRO, plus:
โœ“ Best Practices โœ… Premium Bootstrap 5 Design โœ… 1 Week Custom Development
โœ“ DB: SQLite, MySql โœ… OAuth for Github โœ… Team: PM, Developer, Tester
โœ“ DB Tools: ORM, Flask-Migrate โœ… Extended User Model โœ… Weekly Sprints
โœ“ Session-Based authentication โœ… Users Roles โœ… Technical SPECS
โœ“ Docker โœ… Private REPO Access โœ… Documentation
โœ“ CI/CD Flow via Render โœ… PRO Support - Email & Discord โœ… 30 days Delivery Warranty
โœ“ Free Support - โœ… CI/CD for AWS, DO (Extra)
--------------------------------- --------------------------------- ---------------------------------
โœ“ LIVE Demo ๐Ÿš€ LIVE Demo PRO ๐Ÿ›’ Order: $999 (GUMROAD)

Black Dashboard Flask - Crafted by AppSeed.


โœ… Start in Docker

๐Ÿ‘‰ Step 1 - Download the code from the GH repository (using GIT)

$ git clone https://github.com/app-generator/flask-black-dashboard.git
$ cd flask-black-dashboard

๐Ÿ‘‰ Step 2 - Start the APP in Docker

$ docker-compose up --build 

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


โœ… Create/Edit .env file

The meaning of each variable can be found below:

  • DEBUG: if True the app runs in develoment mode
    • For production value False should be used
  • ASSETS_ROOT: used in assets management
    • default value: /static/assets
  • OAuth via Github
    • GITHUB_ID=<GITHUB_ID_HERE>
    • GITHUB_SECRET=<GITHUB_SECRET_HERE>

โœ… Manual Build

Download the code

$ git clone https://github.com/app-generator/flask-black-dashboard.git
$ cd flask-black-dashboard

๐Ÿ‘‰ Set Up for Unix, MacOS

Install modules via VENV

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

Set Up Flask Environment

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

Start the app

$ flask run
// OR
$ flask run --cert=adhoc # For HTTPS server

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
// OR
$ flask run --cert=adhoc # For HTTPS server

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


โœ… Recompile SCSS

The SCSS/CSS files used to style the Ui are saved in the apps/static/assets directory. In order to update the Ui colors (primary, secondary) this procedure needs to be followed.

$ yarn # install modules
$ # # edit variables 
$ vi apps/static/assets/scss/black-dashboard/custom/_variables.scss 
$ gulp # SCSS to CSS translation

The _variables.scss content defines the primary and secondary colors:

$default:       #344675 !default; // EDIT for customization
$primary:       #e14eca !default; // EDIT for customization
$secondary:     #f4f5f7 !default; // EDIT for customization
$success:       #00f2c3 !default; // EDIT for customization
$info:          #1d8cf8 !default; // EDIT for customization
$warning:       #ff8d72 !default; // EDIT for customization
$danger:        #fd5d93 !default; // EDIT for customization
$black:         #222a42 !default; // EDIT for customization

โœ… Codebase

The project is coded using blueprints, app factory pattern, dual configuration profile (development and production) and an intuitive structure presented bellow:

< PROJECT ROOT >
   |
   |-- apps/
   |    |
   |    |-- home/                           # A simple app that serve HTML files
   |    |    |-- routes.py                  # Define app routes
   |    |
   |    |-- authentication/                 # Handles auth routes (login and register)
   |    |    |-- routes.py                  # Define authentication routes  
   |    |    |-- models.py                  # Defines models  
   |    |    |-- forms.py                   # Define auth forms (login and register) 
   |    |
   |    |-- static/
   |    |    |-- <css, JS, images>          # CSS files, Javascripts files
   |    |
   |    |-- templates/                      # Templates used to render pages
   |    |    |-- includes/                  # HTML chunks and components
   |    |    |    |-- navigation.html       # Top menu component
   |    |    |    |-- sidebar.html          # Sidebar component
   |    |    |    |-- footer.html           # App Footer
   |    |    |    |-- scripts.html          # Scripts common to all pages
   |    |    |
   |    |    |-- layouts/                   # Master pages
   |    |    |    |-- base-fullscreen.html  # Used by Authentication pages
   |    |    |    |-- base.html             # Used by common pages
   |    |    |
   |    |    |-- accounts/                  # Authentication pages
   |    |    |    |-- login.html            # Login page
   |    |    |    |-- register.html         # Register page
   |    |    |
   |    |    |-- home/                      # UI Kit Pages
   |    |         |-- index.html            # Index page
   |    |         |-- 404-page.html         # 404 page
   |    |         |-- *.html                # All other 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
   |
   |-- ************************************************************************

โœ… Black Dashboard Flask PRO Version

For more components, pages and priority on support, feel free to take a look at this amazing starter:

Black Dashboard is a premium Bootstrap Design now available for download in Django. Made of hundred of elements, designed blocks, and fully coded pages, Black Dashboard PRO is ready to help you create stunning websites and web apps.

  • ๐Ÿ‘‰ Black Dashboard PRO Flask - product page
    • โœ… Enhanced UI - more pages and components
    • โœ… Priority on support

Black Dashboard PRO - Full-Stack Starter generated by AppSeed.



Black Dashboard Flask - Open-source starter generated by AppSeed.

flask-black-dashboard's People

Contributors

app-generator avatar dragosvoinea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flask-black-dashboard's Issues

Where is the data?

Great project but I fail to find where the data is read from. Also, it took me a while to figure out where to place my Google Maps API credentials. Perhaps these things could be more obvious from the go.

Javascript experts would trivially figure this one out, but I'm a Python guy!

The view function did not return a valid response error

Hi
First of all I'd like to thank you for integrating flask with tim's template

However none of the pages are rendering and even after countless attempts of getting even a simple route to work I keep getting :

Traceback (most recent call last):
File "C:\Users\boi\Desktop\test\venv\lib\site-packages\flask\app.py", line 2463, in call
return self.wsgi_app(environ, start_response)
File "C:\Users\boi\Desktop\test\venv\lib\site-packages\flask\app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "C:\Users\boi\Desktop\test\venv\lib\site-packages\flask\app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\boi\Desktop\test\venv\lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "C:\Users\boi\Desktop\test\venv\lib\site-packages\flask\app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\boi\Desktop\test\venv\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
return self.finalize_request(rv)
File "C:\Users\boi\Desktop\test\venv\lib\site-packages\flask\app.py", line 1967, in finalize_request
response = self.make_response(rv)
File "C:\Users\boi\Desktop\test\venv\lib\site-packages\flask\app.py", line 2097, in make_response
"The view function did not return a valid response. The"
TypeError: The view function did not return a valid response. The function either returned None or ended without a return statement.

Looking forward to your reply

Web app doesn't load after installation

After following the installation steps on a windows dev machine, the flask server launches, and when you load 127.0.0.1:5000, the server responds with this:
"127.0.0.1 - - [19/Nov/2019 12:39:33] "GET / HTTP/1.1" 302 -"

but then nothing ever loads, it will just sit and spin. Any ideas?

Bad gateway 502

I have a problem when build app in Ubuntu 20.04 by Docker 20.10.14 and Docker Compose is 1.25.0 as 2 pictures below.

image

image

Pre-produced:

  1. Clone the latest version 1.0.6
$ git clone https://github.com/app-generator/flask-black-dashboard.git
$ cd flask-black-dashboard
  1. Build from docker-compose
    $ docker-compose up --build -d

  2. Error version
    image

  3. Change from version 3.8 to version: 3.3 in line 1 of docker-compose.yml

  4. Run step 2 again
    image

  5. Visit http://localhost:85
    image

Not loading the CSS file

github

I tried to run the code by using the README. Able to run the application but the CSS file is not reflecting. Screenshot of UI attached. Can anyone know what is the exact reason for this issue. Any help is appreciated. Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.