a small todo CLI app with Rust
- clap: Command line argument parser for Rust
- sqlx: Rust SQL took kit
- Tokio: A runtime for writing asynchronous app with Rust
- tabled: to print the tables out with the struct
- docker: for the PostgreSQL DB
- run docker PostgreSQL container
sudo docker run --name todo -e POSTGRES_PASSWORD=password -e POSTGRES_USER=dev -e POSTGRES_DB=todo -d postgres
- put the database URL in the
.env
- Create new todo task
cargo run create <task name> "<task discription>"
- Get all todos
cargo run get
- Mark task as done with task name
cargo run done name <task name>
- Mark task as done with task id
cargo run done id <task id: number>