Git Product home page Git Product logo

habittrackingapp's Introduction

Habit Tracker CLI 🎯 This is a Command Line Interface (CLI) application designed to help users track their habits and monitor their progress. Users can register, log in, add habits, mark habits as complete, view analytics, and more, all through a text-based interface.

πŸ“‹ Getting Started

1️⃣ Clone the Repository

2️⃣ Dependencies Make sure you have Python 3.x installed on your system.

3️⃣ Install Required Libraries Run the following command to install the required libraries:

pip install sqlite3

4️⃣ Run the CLI Navigate to the project directory in your terminal and run the following command:

python cli.py

This will start the Habit Tracker CLI and guide you through the available options.

πŸ“– Usage When you run the CLI, you'll be presented with options to register, log in, or quit.

After πŸ”‘ logging in, you can βž• add habits, πŸ‘οΈ view your habits, 🧹 delete some if needed, β˜‘οΈ mark habits as completed, πŸ₯‡ check your rewards, πŸ“ˆ view analytics, or πŸ‘‹ log out.

πŸ”‘ Logging in as TeeLv Ensure that the provided SQLite database file habit.db is located in the same directory as the script. To log in as user TeeLv use: Username: TeeLv Password: 12 If the login is successful, the program will be able to show TeeLv's analytics for 4 weeks of usage of the application.

❗In case the database is lost/damaged, first in CLI register a new user with a username: 'TeeLv' and the password: '12', then navigate to the project directory in your terminal and run the following command:

python TeeLv.py 

This will automatically populate TeeLv's habits, reminders, and completions.

πŸ“œ Pre-defined Habit Descriptions for TeeLv User TeeLv has been predefined with 5 habits as follows:

πŸƒ Morning Run:
Description: Run for 30 minutes every morning
Periodicity: Daily
Reminder: None

πŸ“š Read Book:
Description: Read a book for 1 hour
Periodicity: Daily
Reminder: Daily at 13:00

πŸ§˜β€β™€οΈ Weekly Meditation:
Description: Meditate for 2 hours every weekend
Periodicity: Weekly
Reminder: Weekly at 10:30

🎸 Guitar Practice:
Description: Practice playing the guitar for 1 hour
Periodicity: Daily
Reminder: None

πŸ—£οΈ Learn 50 Words in Thai:
Description: Learn 50 words from a foreign language
Periodicity: Monthly
Reminder: None

πŸ† Reward System

Points and Broken Streaks: For every habit marked as completed, the system will award a user with 10 points. Upon successful login, the system will check for any broken streaks for user's habits. Every time a streak is broken, a user will be penalized by deducting 10 points. However, this deduction is executed only once on a given date. This means if a user logs out and logs back in on the same date, the points will not be deducted again. Example: If TeeLv has broken 3 streaks today and hasn't logged in until today, 30 points will be deducted upon the first login. Subsequent logins on the same day will not lead to further deductions.

Check Points: To check the total points, use option "4" in the menu.

Explanation for Points Deduction: The rationale for the points system is to motivate the user to maintain consistency in their habits. By penalizing broken streaks, we hope to encourage users like TeeLv to stick to their habits and achieve their goals.

πŸ“Š To Run the Tests Navigate to the project directory in your terminal and run the following command: python tests.py

πŸ›  Technology Stack

Language: Python

Database: SQLite

habittrackingapp's People

Contributors

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