{"id":17681790,"url":"https://github.com/jgaskins/server_rendered_clearwater_example","last_synced_at":"2025-09-16T13:22:26.563Z","repository":{"id":143300960,"uuid":"96270754","full_name":"jgaskins/server_rendered_clearwater_example","owner":"jgaskins","description":"Server-rendered Clearwater example","archived":false,"fork":false,"pushed_at":"2017-07-05T03:12:06.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T06:51:24.619Z","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/jgaskins.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":"2017-07-05T02:55:36.000Z","updated_at":"2017-08-23T13:33:45.000Z","dependencies_parsed_at":"2023-04-14T05:23:25.114Z","dependency_job_id":null,"html_url":"https://github.com/jgaskins/server_rendered_clearwater_example","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/jgaskins%2Fserver_rendered_clearwater_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgaskins%2Fserver_rendered_clearwater_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgaskins%2Fserver_rendered_clearwater_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgaskins%2Fserver_rendered_clearwater_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgaskins","download_url":"https://codeload.github.com/jgaskins/server_rendered_clearwater_example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246366227,"owners_count":20765652,"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":[],"created_at":"2024-10-24T09:12:11.168Z","updated_at":"2025-09-16T13:22:21.519Z","avatar_url":"https://github.com/jgaskins.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server-rendered Clearwater example\n\nTo server-render a Clearwater app with Rails:\n\n- [Add `app/shared` to your Ruby load path](https://github.com/jgaskins/server_rendered_clearwater_example/blob/master/config/application.rb#L15)\n- [Add `app/shared` to the Sprockets load path](https://github.com/jgaskins/server_rendered_clearwater_example/blob/master/config/initializers/assets.rb#L10)\n- [Write your shared components in `app/shared`](https://github.com/jgaskins/server_rendered_clearwater_example/blob/master/app/shared/components/layout.rb)\n- Rename `app/assets/javascripts/application.js` to [`app/assets/javascripts/application.rb`](https://github.com/jgaskins/server_rendered_clearwater_example/blob/master/app/assets/javascripts/application.rb)\n- [Add a Rails controller that instantiates your app on the server similar to the client app](https://github.com/jgaskins/server_rendered_clearwater_example/blob/master/app/controllers/home_controller.rb)\n  - [Make sure to pass a router with its location set to the request](https://github.com/jgaskins/server_rendered_clearwater_example/blob/master/app/controllers/home_controller.rb#L7)\n  - [Add that route as the root and catch-all routes](https://github.com/jgaskins/server_rendered_clearwater_example/blob/master/config/routes.rb#L2-L3)\n  - [Add a view for that controller that renders the app inside the element your client app will render into](https://github.com/jgaskins/server_rendered_clearwater_example/blob/master/app/views/home/index.html.erb)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgaskins%2Fserver_rendered_clearwater_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgaskins%2Fserver_rendered_clearwater_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgaskins%2Fserver_rendered_clearwater_example/lists"}