My first project after completing my Python bootcamp, a social media style web app done with flask and sqlite. The goal of this project was to demonstrate my skills in python and sql, so i mainly focused on the backend. And created a secure web app where a user can register an account, store the user info in a database with password hashing, login, create posts, see other people's posts, and be able to logout.
- Register form (username, email, password):
Then if everything checks out save the credentials to the db, let the user know they're register was successful then redirect the user to the login page.
-
Login form (email, password):
-
Create post
Python3, Flask, flask_sqlalchemy, flask_login, flask_wtf, wtforms, Werkzeug, SQLite, HTML & CSS, Bootstrap, GIT
Will be deploying it soon when i finish with other project and my porfolio/personal site, in the meantime you can download and run it locally.
$ git clone https://github.com/fulanii/flask-auth-project.git
$ cd flask-auth-project
$ pip install -r requirements.txt
$ python run.py
In the future thinking about adding the different changes bellow, and feel free to contribute too.
- Edit button
- Delete button
- Add 2fa (and use some sort of email api to verify user email)
- Make UI nicer