This Flask template has been built from the ground up to be a secure Progressive Web App. It includes a secure form and Bootstrap sample components ready to be connected to a SQLite3 database. All minimum PWA standards have been integrated, and placeholder images have been provided for all the icon and image components.
- VSCode or GitHub Codespaces (preconfigured for docker)
- Python 3+
- pip install Flask
- pip install SQLite3
- pip install bcrypt
- pip install flask_wtf
- Strict Content Security Policy
- No inline
<script></script>
. - Restricted
<iframe>
loading - XSS blocked
- No inline
- HTML Languaged declared.
- Meta character set declared.
- Private folders use .folderName syntax.
- Bootstrap components served from a known and trusted Boostrap CDN.
- CSRFProtect applied to form.
- Form Pattern expression declared.
- Web content, Bootstrap ready
- SQLite database design and integration
- Input sanitisation
- Login, authentication or session management
- Password encryption using bcrypt
- SSL Encryption
- The app should have a privacy handling policy
- Only data essential for the purposes of the app should be collected
- Users should be given the option to download or delete their data
- Passwords should be encrypted, including a salt, before hashing
- All inputs should be sanitised before processing or storing
- If including login, authentication and session management should be implemented
- SSL Encryption and HTTPS should be implemented
- Use Jinga2 components when passing variables to the frontend
- Use query parameters for all SQL queries
Tip
Developers should monitor Bootstrap 5.3.3 for discovered vulnerabilities and patch or update as needed.