{"id":19938220,"url":"https://github.com/2kabhishek/trains","last_synced_at":"2026-05-09T07:37:26.027Z","repository":{"id":100264159,"uuid":"452701505","full_name":"2KAbhishek/trains","owner":"2KAbhishek","description":"Simple blog built with Rails 🚂🖊️","archived":false,"fork":false,"pushed_at":"2024-03-26T07:35:43.000Z","size":138,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T12:48:12.906Z","etag":null,"topics":["action-text","blog","demo","graphql","i18n","learning","rails","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/2KAbhishek.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},"funding":{"github":"2kabhishek"}},"created_at":"2022-01-27T13:51:43.000Z","updated_at":"2024-08-07T14:02:53.000Z","dependencies_parsed_at":"2024-03-26T08:34:39.503Z","dependency_job_id":"260280ab-91cb-4518-ba09-f4e1bb1705ae","html_url":"https://github.com/2KAbhishek/trains","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"2KAbhishek/bare-minimum","purl":"pkg:github/2KAbhishek/trains","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Ftrains","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Ftrains/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Ftrains/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Ftrains/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2KAbhishek","download_url":"https://codeload.github.com/2KAbhishek/trains/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Ftrains/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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-11-26T02:00:06.075Z","response_time":193,"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":["action-text","blog","demo","graphql","i18n","learning","rails","ruby"],"created_at":"2024-11-12T23:38:52.974Z","updated_at":"2025-11-26T07:04:03.590Z","avatar_url":"https://github.com/2KAbhishek.png","language":"Ruby","funding_links":["https://github.com/sponsors/2kabhishek"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align = \"center\"\u003e\n\n\u003ch1\u003e\u003ca href=\"https://2kabhishek.github.io/trains\"\u003etrains\u003c/a\u003e\u003c/h1\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/trains/blob/main/LICENSE\"\u003e\n\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/2kabhishek/trains?style=flat\u0026color=eee\u0026label=\"\u003e \u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/trains/graphs/contributors\"\u003e\n\u003cimg alt=\"People\" src=\"https://img.shields.io/github/contributors/2kabhishek/trains?style=flat\u0026color=ffaaf2\u0026label=People\"\u003e \u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/trains/stargazers\"\u003e\n\u003cimg alt=\"Stars\" src=\"https://img.shields.io/github/stars/2kabhishek/trains?style=flat\u0026color=98c379\u0026label=Stars\"\u003e\u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/trains/network/members\"\u003e\n\u003cimg alt=\"Forks\" src=\"https://img.shields.io/github/forks/2kabhishek/trains?style=flat\u0026color=66a8e0\u0026label=Forks\"\u003e \u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/trains/watchers\"\u003e\n\u003cimg alt=\"Watches\" src=\"https://img.shields.io/github/watchers/2kabhishek/trains?style=flat\u0026color=f5d08b\u0026label=Watches\"\u003e \u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/trains/pulse\"\u003e\n\u003cimg alt=\"Last Updated\" src=\"https://img.shields.io/github/last-commit/2kabhishek/trains?style=flat\u0026color=e06c75\u0026label=\"\u003e \u003c/a\u003e\n\n\u003ch3\u003eSimple blog built with Rails 🚂🖊️\u003c/h3\u003e\n\n\u003cfigure\u003e\n  \u003cimg src= \"images/screenshot.png\" alt=\"trains Demo\"\u003e\n  \u003cbr/\u003e\n  \u003cfigcaption\u003etrains screenshot\u003c/figcaption\u003e\n\u003c/figure\u003e\n\n\u003c/div\u003e\n\n## What is this\n\ntrains is a demo blog built with Rails that follows best practices and is easy to enhance.\n\nSome of the features of trains:\n\n- Internationalization\n- GraphQL API\n- ActionText Support\n\n## Inspiration\n\nNeeded a rails application to test my ideas on.\n\n## Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n- You have installed the latest version of `ruby`.\n\n## Getting trains\n\nTo get trains, follow these steps:\n\n```bash\ngit clone https://github.com/2kabhishek/trains\ncd trains\nbundle install\nrails server\n```\n\n## Using trains\n\nUsing I18n:\n\nCurrently, trains supports only English and Spanish.\n\nVisit `http://localhost:3000/es` to see the blog in Spanish.\n\nTrains also supports GraphQL.\n\nTo use GraphQL, visit `http://localhost:3000/graphql` and enter the following query:\n\n```js\n    query {\n      posts {\n        id\n        title\n        content\n      }\n    }\n```\n\n## How it was built\n\ntrains was built using `rails`\n\n## Challenges faced\n\nSetting up action text with Rails 7 was a bit tricky.\n\n## What I learned\n\n- Explored more rails concepts\n- Using I18n for model translations with the `after_find` callback\n\n## What's next\n\nWill try out more ideas when needed.\n\nHit the ⭐ button if you found this useful.\n\n## More Info\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/trains\"\u003eSource\u003c/a\u003e | \u003ca href=\"https://2kabhishek.github.io/trains\"\u003eWebsite\u003c/a\u003e\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2kabhishek%2Ftrains","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2kabhishek%2Ftrains","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2kabhishek%2Ftrains/lists"}