Django Habit Tracker is a web application designed to help users track their habits, manage tasks, and monitor progress towards their goals. This README provides an overview of the project's features, installation instructions, usage guidelines.
To install and run Django Habit Tracker locally, follow these steps:
- clone the repository
git clone https://github.com/UsfZA/Habit-Tracker.git
cd Habit-Tracker
- Install dependencies:
pip install -r requirements.txt
I'm using MySQL as the database, so I've included mysqlclient
in the requirements.
If you don't have MySQL installed, you can use the built-in SQLite configuration. Follow these steps:
- Ensure you have SQLite installed on your system.
- Comment out the MySQL configuration in the 'local_settings.py' file.
- Copy the 'local_settings.example.py' file and rename it to
local_settings.py
. - Update the database configuration in 'local_settings.py' with your own database credentials.
- Apply database migrations:
python manage.py migrate
- Run the development server:
python manage.py runserver
- Access the application in your web browser at http://localhost:8000
- Users can create accounts and log in to track their habits.
- Add, and delete habits.
- Tasks are automatically generated based on habit goal, frequency and period.
- Track streaks for each habit to maintain consistency.
- Earn achievements for hitting streak milestones or completing habits.
- View detailed analytics on habit tracking, including active habits, streak lengths, and progress towards goals.
- Visualize habit data to gain insights into behavior patterns.
- Users have personalized profiles displaying their active habits and other relevant information.
Once the application is running, you can perform the following actions:
- Create an account or log in with existing credentials.
- Navigate to the "Add Habit" page and input details such as habit name, frequency, period, and goal.
- View due today tasks and active tasks.
- Mark tasks as completed by clicking on them.
- Check your analytics regularly to monitor streak lengths, progress percentages, and achievements.
- Navigate to the "Habit Manager" :
- View all tracked habits and access their details including tasks journal and streak log for each habit
- Delete habits along with associated tasks, streaks, and achievements.