viveksantayana
60b6a462c8
Refactored to move security package inside common Moved data folder to process root.
4.0 KiB
4.0 KiB
References for Learning Flask, etc
Documentation
Docker/Docker-Compose
MongoDB/PyMongo
Source Code
- MongoDB Docker Image entrypoint shell script (Context: Tried to replicate the command to create a new user in the original entrypoint script in the custom initialisation script in this app.)
Guides
Flask General
Stack Exchange/Overflow
MongoDB
- Creating MongoDB Database on Container Start
- Passing Environment Variables to Docker Container Entrypoint
- Integrating Flask-Login with MongoDB (This does not work with the app as is, and is possibly something that needs more research and development in the future)
- Setting up a Postfix email notification system
YouTube Tutorials
General Flask Introduction
- Part 1: Basics
- Part 2: HTML Templates
- Part 3: Bootstrap and Jinja
- Part 4: HTTP Methods and Data Handling
- Part 5: Sessions
- Part 6: Flashing Alerts
- Part 9: Static Files
- Part 10: Blueprints and Sub-Files
- All in One with some more precise methods and techniques
Note: These tutorials use an outdated version of Bootstrap where some of the elements no longer apply.
Build a User Log-In System using Python and MongoDB
This method uses a basic HTML form and handles log-ins manually (rather than flask-login
or flask-auth
).
It uses sessions
to handle user interactions (rather than cookies).
A better method would be to layer this with other Flask modules, such as flask-login
, flask-auth
, flask-wtforms
, etc.
This tutorial is nevertheless really useful for integrating with MongoDB.
Creating a User Login Session using Python, Flask, and MongoDB
A much simpler and more rudimentary introduction to Flask and MongoDB.
flask-login
- Intro to
flask-login
- Build a User Login System with
flask-login
,flask-wtforms
,flask-bootstrap
, andflask-sqlalchemy
A much more robust method that uses the various Flask modules to make a more powerful framework. Uses SQL rather than MongoDB.