Giter VIP home page Giter VIP logo

nodejs-habittracker's Introduction

Habit Tracker

A web application which help you to create, update, delete and track your habit on daily basis. It is user specific app, which mean a user can track their habit, and mark it as done , or not done. 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.

Installation

To run this application on your local machine, please follow these steps:

Clone this repository using the following command:

$ git clone https://github.com/agentgrey/NodeJS-HabitTracker.git

Install the required dependencies using the following command:

$ npm install 

Start the application using the following command:

$ npm start 

Open the application in your web browser by visiting the following URL:

$ http://localhost:8000 

Usage

Once you have the application up and running, you can start using it by following these steps:

  • Sing-up/Sign-in into your account.
  • Click on the "Add Habit" button to create a new habit.
  • Enter the name of the habit you want to track.
  • Click on the "Save" button to save the habit.
  • To mark a habit as complete/incomplete for the day, simply click on the corresponding icon.
  • To delete a habit, click on the "Delete" icon next to it.
  • To see today's habits, click on "Show Daily" button.
  • To edit a habit, click on the "Edit" icon next to it.

Folder Structure

Habit Tracker
    |
    |               |--->css
    |--->assets---->|--->img
    |               |---> js
    |
    |               |--->flashMiddleware.js
    |--->config---->|--->mongoose.js
    |               |--->passport_local.js
    |
    |                  |-->habit_controller.js
    |--->controllers-->|-->home_controller.js
    |                  |-->user_controller.js
    |
    |               |-->habit.js
    |--->models---->|
    |               |-->user.js
    |
    |              
    |               |-->habit.js
    |--->routes---->|-->index.js
    |               |-->user.js
    |
    |              
    |              |--->_header.ejs
    |              |--->404.ejs
    |              |--->daily_view.ejs
    |              |--->forget_password.ejs
    |--->views---->|--->home.ejs
    |              |--->layout.ejs
    |              |--->user_sign_in.ejs
    |              |--->user_sign_up.ejs
    |              |--->weekly_view.ejs
    |
    |-->node_modules
    |-->.gitignore
    |--> index.js
    |--> package-lock.json
    |-->package.json
    

Screenshots

Home Page

image

Sign-up Page

image

Sign-in Page

image

Weekly View Page

image

Contributing

Contributions are always welcome! If you have any suggestions for improving this application, please feel free to create a pull request or open an issue.

nodejs-habittracker's People

Contributors

ritik1903 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.