HabitTracker is a simple CLI-based app that can be used to log occurences of a habit and store them in a database. In this case the logged habit is reading and the unit is a page.
- C#
- ADO.NET
- SQLite
- The app uses SQLite database to store data.
- The user can interact with the database through command line interface.
- Available operations include inserting, updating, deleting and viewing the data.
- The user can also generate a report, that displays units and occurences of the habit in the selected year.
The application creates an SQLite database (database.db) with the following schema:
Column | Type | Description |
---|---|---|
id | INTEGER | Primary key, auto-incremented. |
date | TEXT | Date of the habit (dd-MM-yyyy). |
amount | INT | Number of pages read. |
To run the application you need to have .NET installed on your machine.
- Clone the repository:
git clone https://github.com/afilipkowski/CodeReviews.Console.Calculator cd HabitTracker.afilipkowski/HabitTracker.afilipkowski
- Build the project:
dotnet build
- Run the application:
dotnet run