{"id":23390523,"url":"https://github.com/tty47/rails-blog","last_synced_at":"2025-10-05T21:36:26.033Z","repository":{"id":107119350,"uuid":"422908382","full_name":"tty47/rails-blog","owner":"tty47","description":"Test application with Ruby on Rails","archived":false,"fork":false,"pushed_at":"2021-10-30T16:40:27.000Z","size":177,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T14:21:22.762Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tty47.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":"2021-10-30T14:46:08.000Z","updated_at":"2021-10-30T16:40:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"b30f1dc8-3f32-46dd-98b4-f4bf0e0cf596","html_url":"https://github.com/tty47/rails-blog","commit_stats":null,"previous_names":["tty47/rails-blog"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tty47/rails-blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tty47%2Frails-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tty47%2Frails-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tty47%2Frails-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tty47%2Frails-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tty47","download_url":"https://codeload.github.com/tty47/rails-blog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tty47%2Frails-blog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278526234,"owners_count":26001325,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-22T03:31:59.093Z","updated_at":"2025-10-05T21:36:26.006Z","avatar_url":"https://github.com/tty47.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby on Rails Blog\n\nThis is an example of a RoR application.\n\nHere we will use the basic commands and create a CRUD application.\n\n---\n## Setup\n\nTo setup the project you will need:\n\nRuby:\n```\nruby --version\n```\n\nSQLite3\n\n```sqlite3\nsqlite3 --version\n```\n\nNode\n```\nnode --version\n```\n\nYarn\n```\nyarn --version\n```\n\n---\n\n## Install Rails\n\n```ruby\ngem install rails\n```\n\nConfirm it with:\n```rails\nrails --version\n```\n\n---\n## Useful commands\n```rails\n# Setup new app\nrails new blog\n\n# Rails server commands\nrails console\nrails server\nrails routes\n\n# Generate Models\nrails generate model Article title:string body:text\nrails generate model Comment commenter:string body:text article:references\n\n# Generate Controllers\nrails generate controller Articles index --skip-routes\nrails generate controller Comments\n\n# Generate new migrations\nrails generate migration AddStatusToArticles status:string\nrails generate migration AddStatusToComments status:string\n\n# DB migrations\nrails db:migrate\n\n# Tests commands\n# Run specific test in line :X\nrails test test/models/article_test.rb:8\n# Run all the tests\nrails test test/models/article_test.rb\n```\n\n---\n\n## Sources\n[Rails Guides](https://edgeguides.rubyonrails.org/getting_started.html)\n\n---\nJose Ramón Mañes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftty47%2Frails-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftty47%2Frails-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftty47%2Frails-blog/lists"}