{"id":26796137,"url":"https://github.com/psyhackological/rtask","last_synced_at":"2025-03-29T18:17:28.393Z","repository":{"id":227143033,"uuid":"770580986","full_name":"Psyhackological/rtask","owner":"Psyhackological","description":"📝 Manage your tasks effortlessly with this Rust \u0026 SQLx-based to-do app, enabling you to add, complete, and list tasks with simple commands!","archived":false,"fork":false,"pushed_at":"2024-06-16T11:56:35.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T18:57:12.069Z","etag":null,"topics":["rust","sqlx","task","todo"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Psyhackological.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-11T19:49:27.000Z","updated_at":"2024-06-16T11:56:38.000Z","dependencies_parsed_at":"2024-03-11T21:26:05.465Z","dependency_job_id":"51b9ca6d-2938-4814-8457-d853ec7c8d00","html_url":"https://github.com/Psyhackological/rtask","commit_stats":null,"previous_names":["psyhackological/rust-task"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Psyhackological%2Frtask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Psyhackological%2Frtask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Psyhackological%2Frtask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Psyhackological%2Frtask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Psyhackological","download_url":"https://codeload.github.com/Psyhackological/rtask/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246223314,"owners_count":20743168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust","sqlx","task","todo"],"created_at":"2025-03-29T18:17:27.805Z","updated_at":"2025-03-29T18:17:28.376Z","avatar_url":"https://github.com/Psyhackological.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TODOs Example\n\n## Setup\n\n1. Declare the database URL\n\n- GNU/Linux /w Bash\n\n```bash\nexport DATABASE_URL=\"sqlite:todos.db\"\n```\n\n- For Command Prompt (`cmd.exe`)\n\n ```cmd\n set DATABASE_URL=sqlite:todos.db\n ```\n\n- PowerShell\n\n ```powershell\n $env:DATABASE_URL=\"sqlite:todos.db\"\n ```\n2. Create the database.\n\n```sh\nsqlx db create\n```\n\n3. Run SQL migrations\n\n```sh\nsqlx migrate run\n```\n\n## Usage\n\n### Using Cargo Commands\n\nAdd a todo:\n\n```sh\ncargo run -- add \"todo description\"\n```\n\nAdd a todo with a category:\n\n```sh\ncargo run -- add \"todo description\" \"category name\"\n```\n\nComplete a todo:\n\n```sh\ncargo run -- done \u003ctodo_id\u003e\n```\n\nList all todos:\n\n```sh\ncargo run\n```\n\nDelete all completed todos:\n\n```sh\ncargo run -- delete-done\n```\n\n### Using Justfile Aliases\n\nInitialize the database and run migrations:\n\n```sh\njust init\njust i\n```\n\nAdd a todo:\n\n```sh\njust add \"todo description\"\njust a \"todo description\"\n```\n\nAdd a todo with a category:\n\n```sh\njust add \"todo description\" \"category name\"\njust a \"todo description\" \"category name\"\n```\n\nComplete a todo:\n\n```sh\njust done \u003ctodo_id\u003e\njust d \u003ctodo_id\u003e\n```\n\nList all todos:\n\n```sh\njust list\njust ls\n```\n\nList all todos filtered by category:\n\n```sh\njust list \"category name\"\njust ls \"category name\"\n```\n\nDelete all completed todos:\n\n```sh\njust delete-done\njust dd\n```\n\nRun Clippy to check for common mistakes:\n\n```sh\njust clippy\njust c\n```\n\nFormat the code using Rustfmt:\n\n```sh\njust format\njust f\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsyhackological%2Frtask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsyhackological%2Frtask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsyhackological%2Frtask/lists"}