This is a template for Flask and Bootstrap geared towards mobile web applications
and to help get you started with user authentification and user profiles
pip install flask flask-sqlalchemy flask-login flask-wtf flask-bcrypt
Then navigate to the Root dir, the dir with ext.py
and run the command
bin\debug.bat
or naviagate to the bin directory and run debug.bat
- Bootstrap for style/design
- Responsive for Desktop and Mobile
- Flask for Serving the web page
- Uses the Flask Factory pattern
- Uses Flask Blueprints
- We utilize a few extensions to add more features
- flask_sqlalchemy for SQL ORM
- This project is setup for SQLite databases but mysql or mssql can be swapped within the config
- flask_login for user authentification
- flask_bcrypt for data encryption
- flask_wtf for form handling logic
- flask_sqlalchemy for SQL ORM
You have 3 Models, User, Profile and Settings
- username
- password
- bio
- status
- app_name
- dev_mode
Users can register a new account, login to that account and logout all out of the box.
You have a single auth blueprint that handles Login, Logout and Register
The html markup renders a spiffy form for login and register that is responsive.
logged in users can make changes to thier profiles
- update thier own bio
- update thier own status
A slew of features that allows you to:
- Manage existing users and delete them
- upload files
- explore uploaded files
- make changes to the website branding
- Backup or restore the database
- explore the database and its tables
- put the site into developer mode / maitence mode
-
bin/
- run.bat
- drop.bat
- debug.bat
-
blueprints/
- admin.py
- auth.py
- main.py
- profile.py
-
forms/
- auth.py
- profile.py
- settings.py
-
models/
- user.py
- settings.py
-
storage/
- static/
- favicon.ico
- flask-horizontal.webp
- uploads/
- static/
-
views/
- admin/
- browse.html
- config.html
- database.html
- terminal.html
- upload.html
- users.html
- auth/
- login.html
- register.html
- includes/
- navbar.html
- messages.html
- base.html
- dashboard.html
- user.html
- admin/
-
__init__.py
-
ext.py
-
Readme.md