This project running on : https://replit.com/@ViktoriusSuwand/AppBrewery-python-Day-69-Blog-Capstone-Part-4
Documentation can be found on : https://github.com/viktoriussuwandi/Flask-Blog-Website-with-User-Authentication
* python-flask, and jinja2 template for back end - front end.
* flask-SQLAlchemy as database modules.
* wtform as form input and form validation.
* werkzeug security for password hashing-salting.
* flask-login as user's login manager and user's authentication.
-
Establish model data required for application :
Users
,BlogPosts
, andComments
. Each table has attributes, and relationship as below : -
User's activities consists of :
Add
new user,Edit
anddelete
existing user's profile.Post
new article, Edit anddelete
existing article.Comment
to an article, anddelete
existing comment.- Doing additional activations, such as :
user's activation
,post's activation
, andcomment's activation
.
-
User's authorization divided into user's role, such as :
admin
, anduser
:- Only
admin
can doactivation
activities. - Only
admin
andauthorized users
canedit
, anddelete
their own article - Only
admin
candelete
comments.
- Only