A habit tracker project is a web application that allows users to sign in and sign out. It allows users to perform CRUD operations (Create, Read, Update, Delete) on their habits, such as adding new habits, viewing their existing habits, updating or editing habits, and deleting habits. The project is built using a tech stack consisting of Node.js for the server-side scripting, Express for handling HTTP requests and routing, MongoDB for storing and managing the data, and EJS for rendering the views and templates.
Node , Express, Mongodb , EJS , javaScript , html, css
- Clone this project
- Start by installing npm if you don't have it already.
- Navigate to Project Directory by : Using
cd habit-tracker
After reaching to the this preoject directory yo have to run this following command :
$ npm install
$ nodemon server.js or npm start
Habit Tracker
|
| |--->css
|--->assets---->|--->images
| |---> js
|
| |--->mongoose.js
|--->config---->|
| |--->passport-local-Stradegy.js
|
| |-->habbit_controller.js
|--->controllers-->|-->home_controller.js
| |-->user_controller.js
|
| |-->habit.js
|--->models---->|
| |-->user.js
|
|
| |-->user.js
|--->routes---->|-->habit.js
| |--index.js
|
| |--->user_sign_up.ejs
|--->views---->|--->user_sign_in.ejs
| |--->home.ejs
|
|
|-->node_modules
|-->.gitignore
|-->package.json
|