Skip to content

Piarre/todo-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ¦€ Rust Todo CLI πŸ“

A simple terminal-based Todo application built with Rust and SQLite.

πŸš€ Features

  • βœ… Create, read, update, and delete todo items
  • πŸ“Š Persistent storage with SQLite
  • πŸ–₯️ Clean terminal interface
  • ⌨️ Keyboard shortcuts for quick navigation

πŸ”§ Installation

  1. Clone this repository:
git clone https://github.com/Piarre/todo-rust.git
cd todo-rust
  1. Build the application:
cargo build --release
  1. Run the application:
cargo run

πŸ“š Usage

The Todo CLI has a simple menu-based interface:

  • 1: View all your todos
  • 2: Add a new todo
  • 3: Delete a todo by ID
  • 4: Update a todo's description
  • 5: Mark a todo as complete
  • 6: Exit the application

πŸ—‚οΈ Data Storage

All your todos are stored in a local SQLite database file (todo.db) created in the application directory.

🧰 Project Structure

todo/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ main.rs      # Application entry point and menu
β”‚   β”œβ”€β”€ db.rs        # Database connection and operations
β”‚   β”œβ”€β”€ task.rs      # Task model and task operations
β”‚   └── utils.rs     # Helper functions
β”œβ”€β”€ Cargo.toml       # Project dependencies
└── Cargo.lock       # Lock file for dependencies

πŸ“œ License

This project is open source and available under the MIT License.

About

πŸ¦€ First todo app, Todo CLI using SQLite πŸš€

Resources

Stars

Watchers

Forks

Languages