Skip to content

This repo is for a database and flask website deployment, it's purpose is to show others how to link your front end website to a back-end database.

Notifications You must be signed in to change notification settings

TaylorBrown96/Flask-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-Python

This repo is for a lesson plan involving a database and a flask website deployment that can be deployed on Pythonanywhere.com. Its main purpose is to show others how to link your front-end website to a back-end database using Flask as an intermediary.

Requirements for this lesson plan:

Note

You don't need to know any HTML, JavaScript or CSS for these lessons, all related documents for each lesson will be provided for you. Furthermore, if there are any important variable names, they will be listed. (Most variable names are case sensitive because they link to the front-end)

Lesson 1: User login and session cookies

Flask
Imported Modules.
Flask app.route.
Retrieving text from an html form.
Flask sessions (Permanent & Temporary).
Flask POST & GET methods.

Lesson 2: Creating a connection to the database and dynamic loading

Flask POST & GET methods (Continued).
Database Connection configuration.
Database interaction within Flask app.
Dynamic loading with Jinja.

Lesson 3: Security and user editing rights

Checking for database conflicts
Database DELETE statement.
User post editing with UPDATE statement.
Obfuscation with dotenv module.
Password security strength check
Salting and Hashing passwords with bcrypt module.
Modal generation.

About

This repo is for a database and flask website deployment, it's purpose is to show others how to link your front end website to a back-end database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published