A comprehensive, feature-rich habit tracking web application designed to help users build consistency, track progress, and achieve their personal goals through gamification and social accountability.
Live Demo Link โ Live URL coming soon...
| Dashboard | Habits Management | Analytics |
|---|---|---|
| Groups & Social | Achievements | Mobile View |
|---|---|---|
- Habit Creation & Management - Create custom habits with detailed parameters
- Daily Progress Tracking - Mark habits as complete with one click
- Visual Calendar View - Monthly progress overview with color-coded completion status
- Streak Tracking - Maintain and build consecutive day streaks
- Smart Reminders - Customizable notification system
- Progress Statistics - Completion rates and habit performance metrics
- Visual Analytics - Interactive charts and graphs using Chart.js
- Monthly Reports - Comprehensive progress overviews
- Category Tracking - Organize habits by health, productivity, learning, fitness, and more
- Export Capabilities - Download your habit data [comimg soon...]
- Points & Rewards - Earn points for completed habits and streaks
- Achievement System - Unlock badges for milestones and accomplishments
- Daily Login Bonuses - Reward for consistent engagement
- Streak Milestones - Special rewards for 7, 14, and 30-day streaks
- Level Progression - Visual progress indicators
- Group Creation - Form accountability groups with friends
- Group Chat - Real-time messaging within groups
- Progress Sharing - Share selected habits with group members
- Member Management - Admin controls for group management
- Public/Private Groups - Flexible privacy settings
- Responsive Design - Fully mobile-friendly interface
- Intuitive UI/UX - Clean, modern design with Tailwind CSS
- CSRF Protection - Enhanced security measures
- Data Privacy - Control over public/private habit visibility
- Session Management - Secure login and authentication
- Custom Habit Frequencies - Daily, weekly, or custom day schedules
- Category System - Organize habits into meaningful categories
- Search & Filter - Easy navigation through habits
- Data Export - Download your habit history
- Newsletter System - Stay updated with new features
- HTML5 - Semantic markup structure
- Tailwind CSS - Utility-first CSS framework
- JavaScript (ES6+) - Vanilla JavaScript for interactions
- Font Awesome - Comprehensive icon library
- Animate.css - CSS animations
- PHP 7.4+ - Server-side scripting language
- MySQL - Relational database management
- PDO - Secure database interactions
- Chart.js - Data visualization and analytics
- Flatpickr - Modern date picker
- XAMPP - Local development environment
- XAMPP (Apache, MySQL, PHP)
- Modern web browser
- Git (optional)
-
Clone or Download the Repository
git clone https://github.com/HexEnigma/habit_tracker.git
Or download the ZIP file and extract to your
htdocsfolder -
Set Up Database
- Open PHPMyAdmin (usually at http://localhost/phpmyadmin)
- Create a new database named
habit_tracker - Import the SQL file from the project's
habit_tracker.sql/file - Or run the SQL schema provided in the installation docs
-
Configure Environment
- The
config.phpfile is pre-configured for XAMPP - Verify database credentials if using different environment:
define('DB_HOST', 'localhost'); define('DB_NAME', 'habit_tracker'); define('DB_USER', 'root'); define('DB_PASS', '');
- The
-
Launch Application
- Start Apache and MySQL in XAMPP
- Navigate to
http://localhost/habit_tracker/ - Register a new account or use demo credentials
-
Optional: Configure Email
- Set up SMTP settings in
config.phpfor email notifications - Configure reminder system in user settings
- Set up SMTP settings in
- Create Account - Register with email and password
- Add First Habit - Use the "Add Habit" button to create your initial habit
- Set Frequency - Choose daily, weekly, or custom schedule
- Track Daily - Mark habits as complete each day
- Build Streaks - Maintain consistency to build impressive streaks
- Join Groups - Find accountability partners in the Groups section
- Earn Achievements - Complete milestones to unlock badges
- Analyze Progress - Use Analytics to review your performance
- Set Reminders - Configure notifications in Settings
- Customize Categories - Organize habits by your preferred categories
habit_tracker/
โโโ ๐ index.php # Main entry point
โโโ ๐ home.php # Landing page
โโโ ๐ dashboard.php # User dashboard
โโโ ๐ habits.php # Habit management
โโโ ๐ auth.php # Authentication handler
โโโ ๐ config.php # Configuration & database
โโโ ๐ analytics.php # Data visualization
โโโ ๐ achievements.php # Gamification system
โโโ ๐ group.php # Group management
โโโ ๐ monthly-view.php # Calendar functionality
โโโ ๐ header.php # Site header
โโโ ๐ footer.php # Site footer
โโโ ๐ All the remainig file in the repository.
โโโ ๐ css/ # Stylesheets
โ โโโ style.css
โ โโโ login-style.css
โโโ ๐ js/ # JavaScript files
โ โโโ script.js
โโโ ๐ screenshots/ # Project screenshots โ Add your images here
โโโ ๐ database/ # Database schema
โโโ habittracker.sql
-
Registration Not Working
- Check database connection in
config.php - Verify
userstable exists in database - Check PHP error logs for specific issues
- Check database connection in
-
Page Not Loading
- Ensure Apache is running in XAMPP
- Verify files are in
htdocs/habit_tracker/folder
-
Database Errors
- Import the SQL schema again
- Check MySQL is running in XAMPP
-
CSS/JS Not Loading
- Check file permissions
- Verify file paths in HTML headers
- Check the
FAQ.phppage in the application - Review PHP error logs in
xampp/php/logs/ - Ensure all prerequisite services are running
This is currently a personal university project. While I'm not accepting external contributions at this time, I welcome feedback and suggestions!
This project is licensed under the MIT License - see the LICENSE.md file for details.
The MIT License is a permissive free software license that allows reuse within proprietary software provided all copies of the licensed software include a copy of the MIT License terms and the copyright notice. It's a great choice for personal and academic projects.
HabitTracker was developed as a comprehensive course project for my university studies. The goal was to create a full-stack web application that demonstrates proficiency in modern web development technologies while solving a real-world problem.
- Built with pure PHP (no frameworks) for educational purposes
- Focus on security best practices (CSRF protection, input sanitization)
- Responsive design for all device types
- Modular architecture for easy maintenance
- Mobile app development
- API integration for third-party services
- Advanced analytics with machine learning
- Social media integration
- Multi-language support
For questions, support, or feedback about HabitTracker:
- Email: hamimshahriar17@gmail.com
- GitHub Issues: Create an issue
- University: Northern University Bangladesh
โญ If you find this project useful, please give it a star on GitHub!
HabitTracker - Building better habits, one day at a time. ๐