Link to Cyclic App: Snap!
Todo
==========
==> Implement `Express-session` ✅
==> If a user if logged in then:
==> Display user pfp and usename in navbar ✅
==> Right most of the navbar ✅
==> Replace 'login' link with user drop down options ✅
==> Remove the 'register' link ✅
==> Logout link (under user dropdown) will logout user and redirect to /home ✅
==> Cannot go to /user/login it will redirect to /user/dash/:username ✅
---------------------------------
==> Articles filter by categories <== Next
---------------------------------
==> Allow `isAdmin` user to:
==> Add/remove articles ✅
==> Edit any articles ✅
==> Change the article's image...
==> Article image can only be an image ✅
==> Such as (.jpg, .jpeg, .png, .gif) ✅
==> Admin user will display 'Admin' on user dashboard ✅
==> Articles page with show "add" and "remove" for admin users ✅
--------------------------------
==> Logged in user to be able to change:
==> Username, fullname, profile picture (user/dash/edit) 🕔
==> Add a "Edit profile" button for that ✅
--------------------------------
==> Forgot password (for now just ask user 2+2)...
==> Then promt the user to update their password. 🕔
--------------------------------
==> Implement 'Remember-me" <== Not important 🕔
--------------------------------
==> Implement a register 'Upload Image' (Multer) ✅
==> Be able to store and retreive it from mongo ✅
--------------------------------
==> Allow users to sign in with username or email (later) 🕔
--------------------------------
==> If going on any dashboard without signing in will make you sign in first. ✅
Change Log
==========
11/11/22 - Assignment 4 complete
11/13/22 - Started Assignment 5
11/14/22 - Moved: express-sessions & body-parser to server.js from user.js
11/14/22 - Changed 'Users-Test' => 'Users' in const User (user.js)
11/14/22 - If user is not logged when accessing their dashboard it will redirect to login
11/14/22 - User dashboard navbar now has user drop down options rather than 'login/register' links
11/14/22 - Admin user displays 'Admin' (red) on user dashboard
11/15/22 - Index now shows logged in user info on navbar
11/15/22 - Added control buttons to index carousel
11/17/22 - Cannot go to /user/login it will redirect to /user/dash/:username
11/17/22 - Implemented a register 'Upload Image' (Multer)
11/18/22 - Added a "Successfully Logged Out > Return to Home" Page
11/18/22 - Articles now show "remove" and "add (+)" for admin users
11/19/22 - "Logged Out Successfully" message after logged out
11/20/22 - Added "Edit/Remove" buttons for articles page (admin only access)
11/21/22 - Added a blank article card with a "+" to add article (admin)
11/22/22 - Removed blank article card (to be replaced with just a normal + next to "articles")
11/22/22 - Added a modal to remove-articles (not working yet)
11/24/22 - Assignment 5 Done!
11/24/22 - Admin can now add/remove/edit articles and upload only images for articlePhoto
git push