{"id":13819030,"url":"https://github.com/BookOfGreg/react-rails-example-app","last_synced_at":"2025-05-16T04:32:02.815Z","repository":{"id":26488959,"uuid":"105137906","full_name":"BookOfGreg/react-rails-example-app","owner":"BookOfGreg","description":"Minimal basic demonstration React-Rails sample application using Webpacker","archived":false,"fork":false,"pushed_at":"2023-01-19T05:34:56.000Z","size":973,"stargazers_count":91,"open_issues_count":21,"forks_count":47,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T01:15:55.138Z","etag":null,"topics":["react-rails","sprockets","webpack-es6"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BookOfGreg.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}},"created_at":"2017-09-28T11:01:30.000Z","updated_at":"2024-12-17T08:01:50.000Z","dependencies_parsed_at":"2023-02-10T20:45:50.681Z","dependency_job_id":null,"html_url":"https://github.com/BookOfGreg/react-rails-example-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BookOfGreg%2Freact-rails-example-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BookOfGreg%2Freact-rails-example-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BookOfGreg%2Freact-rails-example-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BookOfGreg%2Freact-rails-example-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BookOfGreg","download_url":"https://codeload.github.com/BookOfGreg/react-rails-example-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254469133,"owners_count":22076438,"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":["react-rails","sprockets","webpack-es6"],"created_at":"2024-08-04T08:00:38.245Z","updated_at":"2025-05-16T04:32:02.362Z","avatar_url":"https://github.com/BookOfGreg.png","language":"Ruby","funding_links":[],"categories":["Happy Exploring 🤘"],"sub_categories":[],"readme":"# React-Rails Demo Application\n\nThis repo is an example of a simple working Rails 5, Webpack(er)3, React-Rails 2.3+ application.\n\nWhere generators are used, the git commit will be the command ran to get to the current application state so it will hopefully be easy to follow along at home.\n\n## How to test the Demo Application\n\n#### 1) Install the JS packages:\n\n```sh\n$ yarn install # or npm install\n```\n\n#### 2) Install GEM packages:\n\n```\n$ bundle install\n```\n\n#### 3) In one terminal run the rails server:\n\n```\n$ rails s\n```\n\n#### 4) In another terminal run the webpack server:\n\n```\n$ ./bin/webpack-dev-server\n```\n\n#### 5) Visit the welcome page\n\n```\nhttp://localhost:3000/welcome/index\n```\n\n## Branches\n\nThis repo contains two trees, one Webpacker and one Sprockets.\n\nEach branch illustrates a react-rails ability.\n\n* [`master`](https://github.com/BookOfGreg/react-rails-example-app) -\u003e Webpacker 3\n* [`sprockets`](https://github.com/BookOfGreg/react-rails-example-app/tree/sprockets) -\u003e Sprockets 3\n* [`rails-production-version`](https://github.com/BookOfGreg/react-rails-example-app/compare/sprockets...rails-production-version?expand=1) -\u003e Sprockets 3 + serving production prebundled react\n* [`rails-assets-sprockets`](https://github.com/BookOfGreg/react-rails-example-app/compare/sprockets...rails-assets-sprockets?expand=1) -\u003e Sprockets 3 + using Rails-Assets.org (failed)\n* [`generate-new-component`](https://github.com/BookOfGreg/react-rails-example-app/compare/master...generate-new-component?expand=1) -\u003e Webpacker 3 + new style component\n* [`without-ujs`](https://github.com/BookOfGreg/react-rails-example-app/compare/master...without-ujs?expand=1) -\u003e Sprockets 3 + removing UJS and making component globally accessible\n* [`jsx-file-example`](https://github.com/BookOfGreg/react-rails-example-app/compare/master...jsx-file-example?expand=1) -\u003e Webpacker 3 + file named .JSX\n* [`coffeescript-example`](https://github.com/BookOfGreg/react-rails-example-app/compare/master...coffeescript-example?expand=1) -\u003e Webpacker 3 + Coffeescript WITH JSX\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBookOfGreg%2Freact-rails-example-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBookOfGreg%2Freact-rails-example-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBookOfGreg%2Freact-rails-example-app/lists"}