TODO:
- Make Connect the User Logout Frontent with the backend
- Make a page for the user for them to edit the User-Data
- Add a different login page for the users with the role "business", currently this is being done by manually editing the user role in the Atlas MongoDB. (Default value is "customer", manually changing it to "business" in order to authorise the posting of a new advertisement)
- Take Display Picture from Oauth (The initial login does give this picture but it isn't stored in the database)
- Deletion of a User and an Advertisement is not implemented yet.
Completed:
- User Login by OAuth2
- Filtering advertisements as per the user tags and displaying in the Dashboard (A customer sees the ads that have matching tags, while a business sees that ads that it has posted)
- Only allowing users with roles of "business" to post an advertisement. The API is protected.
- Storing the user data in session
videoDemonstrationLink: https://drive.google.com/drive/folders/1PvB0yKAcJ1_gSuySdOHYvFZPqpgH_Oxk?usp=sharing