{"id":16174959,"url":"https://github.com/app-generator/sample-flask-bootstrap","last_synced_at":"2025-03-19T00:31:08.774Z","repository":{"id":100503221,"uuid":"412472333","full_name":"app-generator/sample-flask-bootstrap","owner":"app-generator","description":"How to use Bootstrap with Flask  - Free Sample | AppSeed","archived":false,"fork":false,"pushed_at":"2024-03-12T15:22:24.000Z","size":8332,"stargazers_count":16,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T05:55:55.110Z","etag":null,"topics":["flask-apps","flask-sample-application","flask-tutorial"],"latest_commit_sha":null,"homepage":"https://appseed.us","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/app-generator.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-01T13:13:51.000Z","updated_at":"2025-01-25T16:43:28.000Z","dependencies_parsed_at":"2024-10-27T19:21:19.593Z","dependency_job_id":"352245d1-e63f-4cfe-8011-0af22cf9ed17","html_url":"https://github.com/app-generator/sample-flask-bootstrap","commit_stats":null,"previous_names":[],"tags_count":4,"template":true,"template_full_name":"app-generator/sample-flask-auth-session","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-flask-bootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-flask-bootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-flask-bootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-flask-bootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/app-generator","download_url":"https://codeload.github.com/app-generator/sample-flask-bootstrap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244331750,"owners_count":20435992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask-apps","flask-sample-application","flask-tutorial"],"created_at":"2024-10-10T04:43:50.985Z","updated_at":"2025-03-19T00:31:05.498Z","avatar_url":"https://github.com/app-generator.png","language":"CSS","readme":"# How to use Bootstrap with [Flask](https://appseed.us/admin-dashboards/flask/)\n\nOpen-source [Flask](https://appseed.us/admin-dashboards/flask/) project enhanced with session-based authentication via `Flask-Login` and a simple UI powered by `Bootstrap`. For newcomers, Flask is a popular web framework used to code from simple one-page websites to complex eCommerce solutions and Bootstrap is the most popular JS/CSS framework.  \n\n\u003cbr /\u003e \n\n## Features\n\n\u003e `Have questions?` Contact **[Support](https://appseed.us/support/)** (Email \u0026 Discord) provided by **AppSeed**\n\n| Free Version                          | [PRO Version](https://appseed.us/product/pixel-bootstrap-pro/flask/)          | 🚀 Custom - $3,999         |  \n| --------------------------------------| --------------------------------------| --------------------------------------|\n| ✓ **Bootstrap 5**                         | **Everything in Free**, plus:                                        | **Everything in PRO**, plus:       |\n| ✓ Flask-Login                             | ✅ **Premium Bootstrap 5 Design**                                    | ✅ **1mo Custom Development**     | \n| ✓ Session-based Authentication            | ✅ `Auth` Provided by **Flask-Security-Too**                         | ✅ **Dedicated Developer**        |\n| -                                         | ✅ `Extended User Model`                                             | ✅ Weekly Sprints                 |\n| -                                         | ✅ `Users Roles`                                                     | ✅ Technical SPECS               |\n| -                                         | ✅ `Private REPO Access`                                             | ✅ Documentation                  |\n| -                                         | ✅ **PRO Support** - [Email \u0026 Discord](https://appseed.us/support/)  | ✅ **30 days Delivery Warranty**  |\n| -                                         | ✅ Deployment Assistance                                             |  -                                 |\n| -                                         | -                                                                     |  -                                 \n| ---------------------------------         | ---------------------------------                                     | ---------------------------------  |\n| ✓ [LIVE Demo](https://flask-pixel-lite.appseed-srv1.com/)  | 🚀 [LIVE Demo](https://flask-pixel-enhanced.onrender.com/) `PRO` | 🛒 `Order`: **[$3,999](https://appseed.gumroad.com/l/rocket-package)** (GUMROAD) |   \n\n![Flask User Authentication - Free sample provided by AppSeed.](https://user-images.githubusercontent.com/51070104/134959525-3ad0c71c-27e4-45f7-b7b9-53b76f3884bf.png)\n\n\u003cbr /\u003e\n\n## Build from sources\n\n\u003e 👉 **Step #1** - Clone sources (this repo)\n\n```bash\n$ git clone https://github.com/app-generator/sample-flask-bootstrap.git\n$ cd sample-flask-bootstrap\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Step #2** - Create a virtual environment\n\n```bash\n$ # Virtualenv modules installation (Unix based systems)\n$ virtualenv env\n$ source env/bin/activate\n$\n$ # Virtualenv modules installation (Windows based systems)\n$ # virtualenv env\n$ # .\\env\\Scripts\\activate\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Step #3** - Install dependencies\n\n```bash\n$ # Install requirements\n$ pip3 install -r requirements.txt\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Step #4** - Set Up Environment\n\n```bash\n$ # Set the FLASK_APP environment variable\n$ (Unix/Mac) export FLASK_APP=run.py\n$ (Windows) set FLASK_APP=run.py\n$ (Powershell) $env:FLASK_APP = \".\\run.py\"\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Step #5** - Create Tables (SQLite persistance)\n\n```bash\n$ # Create tables\n$ flask shell\n$ \u003e\u003e\u003e from app import db\n$ \u003e\u003e\u003e db.create_all()\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Step #6** - (optional) Enable DEBUG Environment (local development)\n\n```bash\n$ # Set up the DEBUG environment\n$ # (Unix/Mac) export FLASK_ENV=development\n$ # (Windows) set FLASK_ENV=development\n$ # (Powershell) $env:FLASK_ENV = \"development\"\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Step #7** - Start the project\n\n```bash\n$ # Run the application\n$ # --host=0.0.0.0 - expose the app on all network interfaces (default 127.0.0.1)\n$ # --port=5000    - specify the app port (default 5000)  \n$ flask run --host=0.0.0.0 --port=5000\n$\n$ # Access the app in browser: http://127.0.0.1:5000/\n```\n\n\u003cbr /\u003e\n\n## Code-base structure\n\nThe project has a super simple structure, represented as bellow:\n\n```bash\n\u003c PROJECT ROOT \u003e\n   |\n   |-- app/\n   |    |-- static/\n   |    |    |-- \u003ccss, JS, images\u003e    # CSS files, Javascripts files\n   |    |\n   |    |-- templates/\n   |    |    |\n   |    |    |-- index.html           # Index File\n   |    |    |-- login.html           # Login Page\n   |    |    |-- register.html        # Registration Page\n   |    |    \n   |    |\n   |   config.py                      # Provides APP Configuration \n   |   forms.py                       # Defines Forms (login, register) \n   |   models.py                      # Defines app models \n   |   views.py                       # Application Routes \n   |\n   |-- requirements.txt\n   |-- run.py\n   |\n   |-- ************************************************************************\n```\n\n\u003cbr /\u003e\n\n## Resources\n\n- Free [Admin Dashboards](https://appseed.us/admin-dashboards/open-source) - index provided by AppSeed\n- [Flask User Authentication](https://blog.appseed.us/flask-user-authentication-free-sample/) - blog article\n- [Flask Social Login](https://blog.appseed.us/flask-social-login-with-github/) - blog article (includes a free sample)\n\n\u003cbr /\u003e\n\n---\nHow to use Bootstrap with [Flask](https://appseed.us/admin-dashboards/flask/) - Free sample provided by **[AppSeed](https://appseed.us)**.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fsample-flask-bootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapp-generator%2Fsample-flask-bootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fsample-flask-bootstrap/lists"}