Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 2 KB

README.md

File metadata and controls

53 lines (37 loc) · 2 KB

Habit_tracker

It's a habit tracker app where we can define habits and track them.

Demonstartion video

video link

Images

Home page

History page

Tech Stack

Features

  • 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.

Installation Guide

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.

Folder Structure

  • 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.