{"id":23231559,"url":"https://github.com/talhat298/listifyruby","last_synced_at":"2026-04-15T16:31:46.597Z","repository":{"id":266343397,"uuid":"898088857","full_name":"TalhaT298/listifyRuby","owner":"TalhaT298","description":"An interactive Ruby and Sinatra To-Do List app, enabling users to add tasks, mark them complete, and view updates dynamically.","archived":false,"fork":false,"pushed_at":"2024-12-03T19:31:54.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T12:25:37.274Z","etag":null,"topics":["css","html","ruby","sinatra"],"latest_commit_sha":null,"homepage":"https://listify-ruby-beta.vercel.app","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TalhaT298.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-12-03T19:11:24.000Z","updated_at":"2024-12-03T19:42:35.000Z","dependencies_parsed_at":"2024-12-03T20:36:30.067Z","dependency_job_id":null,"html_url":"https://github.com/TalhaT298/listifyRuby","commit_stats":null,"previous_names":["talhat298/listifyruby"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TalhaT298/listifyRuby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalhaT298%2FlistifyRuby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalhaT298%2FlistifyRuby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalhaT298%2FlistifyRuby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalhaT298%2FlistifyRuby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TalhaT298","download_url":"https://codeload.github.com/TalhaT298/listifyRuby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalhaT298%2FlistifyRuby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31849709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["css","html","ruby","sinatra"],"created_at":"2024-12-19T02:15:17.994Z","updated_at":"2026-04-15T16:31:46.580Z","avatar_url":"https://github.com/TalhaT298.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# To-Do List Ruby Application\n\nA simple and interactive `https://github.com/TalhaT298/listifyRubye` To-Do List web application built using **Ruby** and **Sinatra**. This application allows users to add tasks, mark them as completed, and view the updated list dynamically.\n\n## Features\n\n- **Add New Tasks:** Easily add new tasks to your to-do list.\n- **Mark Tasks as Completed:** Update tasks to indicate completion.\n- **Dynamic UI:** User-friendly interface styled with CSS.\n- **Lightweight and Fast:** Uses Sinatra for a lightweight web server.\n- **In-Memory Storage:** Simple in-memory storage for tasks (perfect for quick demos).\n\n## How to Run the Application\n\n1. Clone this repository:\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd \u003crepository-folder\u003e\n   ```\n\n2. Install the required Ruby gems:\n   ```bash\n   bundle install\n   ```\n\n3. Start the Sinatra server:\n   ```bash\n   ruby app.rb\n   ```\n\n4. Open your browser and navigate to:\n   ```\n   http://localhost:4567\n   ```\n\n## Application Routes\n\n- **`/`**: Displays the list of tasks.\n- **`/new`**: Form to add a new task.\n- **`/add`**: Handles the form submission for adding a new task (POST request).\n- **`/complete/:id`**: Marks a task as completed (POST request).\n\n## Code Overview\n\n### Main Application (`app.rb`)\n\nThe core Ruby file handles routing, rendering views, and managing tasks.\n\n```ruby\nrequire 'sinatra'\nrequire 'sinatra/reloader' if development?\n\n# Sample data for tasks (in-memory storage for simplicity)\ntasks = [\n  { id: 1, title: \"Learn Ruby\", completed: false },\n  { id: 2, title: \"Build a web app\", completed: false }\n]\n\n# Display the list of tasks\nget '/' do\n  @tasks = tasks\n  erb :index\nend\n\n# Route for adding a new task\nget '/new' do\n  erb :new_task\nend\n\npost '/add' do\n  new_task = {\n    id: tasks.length + 1,\n    title: params[:title],\n    completed: false\n  }\n  tasks \u003c\u003c new_task\n  redirect '/'\nend\n\n# Route for marking a task as completed\npost '/complete/:id' do\n  task_id = params[:id].to_i\n  task = tasks.find { |t| t[:id] == task_id }\n  task[:completed] = true if task\n  redirect '/'\nend\n```\n\n\n## Why This To-Do List is Best\n\n- **Beginner-Friendly:** Great for learning Sinatra and understanding basic web development principles.\n- **Customizable:** Easy to extend and add more features (e.g., database integration).\n- **Lightweight:** Minimal dependencies and quick to set up.\n- **Interactive UI:** A clean, simple design with responsive behavior.\n\n## License\n\nThis project is open-source and available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalhat298%2Flistifyruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalhat298%2Flistifyruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalhat298%2Flistifyruby/lists"}