项目作者: app-generator

项目描述 :
Jinja Template - Pixel UI PRO | AppSeed
高级语言:
项目地址: git://github.com/app-generator/jinja-pixel-pro.git
创建时间: 2020-09-22T10:52:03Z
项目社区:https://github.com/app-generator/jinja-pixel-pro

开源协议:Other

下载


Pixel Bootstrap PRO Flask/Jinja

Seed project generated by AppSeed in Flask/Jinja Framework on top of Pixel PRO design. Pixel is a premium Bootstrap 5 based UI Kit featuring over 200 fully coded UI elements and example pages that will help you prototype and build a website for your next project.


Built with Pixel Pro Generator

  • Timestamp: 2022-06-13 18:40
  • Build ID: 9a0c6b85-6b1c-4f1e-8eaa-030f12d0f549
  • Free Support (registered users) via Email and Discord


Features

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


Pixel Bootstrap PRO - Full-Stack Starter generated by AppSeed


✨ Start the app in Docker

Step 1 - Download the code and unzip the sources (requires a purchase).

  1. $ # Get the code
  2. $ unzip flask-pixel-bootstrap-pro.zip
  3. $ cd flask-pixel-bootstrap-pro


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 and unzip the sources (requires a purchase).
  1. $ # Get the code
  2. $ unzip flask-pixel-bootstrap-pro.zip
  3. $ cd flask-pixel-bootstrap-pro


👉 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. |-- ************************************************************************



Pixel Bootstrap PRO Flask/Jinja - Seed Project generated by AppSeed Generator.