Mastering Flask: Implementing User Authentication and Likes
School
CUNY Queens College**We aren't endorsed by this school
Course
COMP SCI 370
Subject
Information Systems
Date
Dec 10, 2024
Pages
1
Uploaded by shayan1068
Step Seven: Research and Understand Login Strategy Look over the code in app.py related to authentication. « How is the logged in user being kept track of? * What is Flask’s g object? e What is the purpose of add_user_to_g ? o What does @app.before_request mean? Part Two: Add Likes A Do This Without AJAX/JavaScript Eventually, this would be a fine feature to integrate with JS/AJAX — that’s even a further study possibility! For now, though: please build this as a pure backend feature in Flask. Liking a warble should NOT be done via AJAX right now. Add a new feature that allows a user to "like" a warble. They should only be able to like warbles written by other users. They should put a star (or some other similar symbol) next to liked warbles. They should be able to unlike a warble, by clicking on that star. On a profile page, it should show how many warblers that user has liked, and this should link to a page showing their liked warbles.