It's a habit tracker app where we can define habits and track them.
- NodeJS and ExpressJS (for backend server).
- MongoDB ( as database to store data).
- Momentjs (To format and compare date and day).
-
Create multiple habits to track like reading a book, Drink water, etc and include total no. of reps.
-
A view to show all current habits
-
Track each habit everyday. we can:
- Increment and decrement current Reps.
- Mark as complete.
- Delete the habit.
-
History page to check weekly perfomance based on Status ( "Done", "Not Done", "None").
- A user can toggle between the three (above mentioned) and update statuses of a habit.
-
All the data are persistent on Database.
Install NodeJS and MongoDB on your system.
on terminal write:
npm install
npm start
Now the Server runnning, open the link (http://localhost:8000) to acess the interface.
app.js
- Entry point of our application. This file defines our express server.assets
- This folder contains all the css files in styles folder and js file in scripts folder.config
- This folder contains configuration of Mongoose(schema and model).controllers
- This folder contains various functions to be executed when called through routes.models
- This folder contains schema definition of our mongoose models.routes
- This folder contains all the routes for our API.views
- This folder contains all the html files to be displayed.