https://habit-tracker-cmu5.onrender.com/
- Started the project with npm init and installed required packages, created required folders, and made the first commit by publishing to GitHub
- Connected to server and app was running successfully
- Connected to the Database by configuring Mongoose, using MongoDB Atlas cloud
- Created UserSchema for storing user name and email
- Connected app, router, controller
- Established view engine using ejs, used express-ejs-layouts for smooth and readable code
- Rendered to login and register page from home
- Added static files to the app and completed registering user function in the controller
- Completed login user by passing userId as a cookie by cookie-parser after login
- Created a logout function to return to home after clearing cookies
- Added a habit successfully to the database after creating add form the homepage and router, controllers for creating a habit on the server side
- Showing habit name, description, day habit created, and status of habit shown on homepage successfully
- Added font-awesome icon to the ejs layout, made a delete link to delete habit and router, controller to delete habit by finding id
- improved protection for user habits, and updated login and register pages
- openining and closing daily and weekly views, create form done successfully
- completed daily views of each habit & changing views of daily and weekly
- added routes and controllers to update status of habit
- made weekly view for all habits and send previous 6 days dates from server
- Added toggle the status of habit to weekly view, and we can update status of previous six days.