A habit-tracking application designed to help users build and break habits by maintaining consistency. The app visualizes user progress with streaks, calendars, and daily reports.
- Task Management: Create and manage good and bad habits.
- Task Analysis: Displays current streak, max streak, and consistency through Nivo Calendar.
- Daily Report: View task completion and hours spent on specific dates.
- Frontend: Next.js, React, Tailwind CSS
- Backend: Node.js, Express.js
- Database: MongoDB
- Data Visualization: Nivo Calendar
-
fork this repository
-
clone the repository on you device:
git clone https://github.com/abhayksahu369/ConsistencyWebApp.git cd ConsistencyWebApp
-
setting up frontend
cd client npm install npm run dev
-
setting up backend:
- add you mongodb link in server\utils\dbConfig.js
- create .env file and set up JWT_SECRET_KEY="your_key"
cd.. cd server npm install node index.js
-
you need to register first http://localhost:3000/auth/register
-
then you need to login http://localhost:3000/auth/login
-
after doing all these , you can create and see your tasks
- Navigate to the home page to view your habits.
- Click on any task to view streaks, calendar, and analysis.
- Use the report page to view tasks completed and hours logged for a specific date.
Feel free to fork this repository and make contributions via pull requests.