项目作者: app-generator

项目描述 :
Jinja Template - Argon Dashboard | AppSeed
高级语言: CSS
项目地址: git://github.com/app-generator/jinja-argon-dashboard.git
创建时间: 2020-08-03T12:34:58Z
项目社区:https://github.com/app-generator/jinja-argon-dashboard

开源协议:Other

下载


Argon Dashboard Flask/Jinja

Open-source Flask/Jinja Template generated by AppSeed op top of Argon Dashboard, a modern Bootstrap 5 dashboard design. The project is a super simple Flask project WITHOUT database, ORM, or any other hard dependency. The project can be used as a codebase for future project or to migrate the Jinja files and assets to a legacy Python-based project that uses Jinja as template engine (Flask, Bottle, Django).


Features

  • Up-to-date dependencies
  • Render Engine: Flask / Jinja2


Argon Dashboard - Starter generated by AppSeed.


✨ Start the app in Docker

Step 1 - Download the code from the GH repository (using GIT)

  1. $ # Get the code
  2. $ git clone https://github.com/app-generator/jinja-argon-dashboard.git
  3. $ cd jinja-argon-dashboard


Step 2 - Edit .env and set DEBUG=True. This will activate the SQLite persistance.

  1. DEBUG=True


Step 3 - Start the APP in Docker

  1. $ docker-compose up --build

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


✨ How to use it

Download the code

  1. $ # Get the code
  2. $ git clone https://github.com/app-generator/jinja-argon-dashboard.git
  3. $ cd jinja-argon-dashboard


👉 Set Up for Unix, MacOS

Install modules via VENV

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


Set Up Flask Environment

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


Start the app

  1. $ flask run

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


👉 Set Up for Windows

Install modules via VENV (windows)

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


Set Up Flask Environment

  1. $ # CMD
  2. $ set FLASK_APP=run.py
  3. $ set FLASK_ENV=development
  4. $
  5. $ # Powershell
  6. $ $env:FLASK_APP = ".\run.py"
  7. $ $env:FLASK_ENV = "development"


Start the app

  1. $ flask run

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


✨ Code-base structure

The project has a simple, intuitive structure presented bellow:

  1. < PROJECT ROOT >
  2. |
  3. |-- apps/__init__.py
  4. |-- apps/
  5. | |-- static/
  6. | | |-- <css, JS, images> # CSS files, Javascripts files
  7. | |
  8. | |-- templates/
  9. | |
  10. | |-- includes/ # Page chunks, components
  11. | | |
  12. | | |-- navigation.html # Top bar
  13. | | |-- sidebar.html # Left sidebar
  14. | | |-- scripts.html # JS scripts common to all pages
  15. | | |-- footer.html # The common footer
  16. | |
  17. | |-- layouts/ # App Layouts (the master pages)
  18. | | |
  19. | | |-- base.html # Used by common pages like index, UI
  20. | | |-- base-fullscreen.html # Used by auth pages (login, register)
  21. | |
  22. | index.html # The default page
  23. | page-404.html # Error 404 page (page not found)
  24. | page-500.html # Error 500 page (server error)
  25. | *.html # All other pages provided by the UI Kit
  26. |
  27. |-- requirements.txt
  28. |
  29. |-- run.py
  30. |
  31. |-- ************************************************************************


✨ PRO Version

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

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


Argon Dashboard PRO - Starter generated by AppSeed.



Argon Dashboard Flask/Jinja - Open-source starter generated by AppSeed Generator.