{"id":16143588,"url":"https://github.com/skunkworker/rails-vue-ssr-hypernova-example","last_synced_at":"2025-10-12T16:26:23.056Z","repository":{"id":39693181,"uuid":"231327193","full_name":"skunkworker/rails-vue-ssr-hypernova-example","owner":"skunkworker","description":"Rails Vue SSR with component import from rails, custom synchronous batching, caching of hypernova responses and VueJS.","archived":false,"fork":false,"pushed_at":"2023-11-01T04:29:46.000Z","size":3907,"stargazers_count":4,"open_issues_count":47,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-11T00:09:41.971Z","etag":null,"topics":["hacktoberfest","hypernova","rails-vue-ssr"],"latest_commit_sha":null,"homepage":"","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/skunkworker.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}},"created_at":"2020-01-02T07:08:29.000Z","updated_at":"2023-05-30T17:24:19.000Z","dependencies_parsed_at":"2023-02-05T03:01:26.607Z","dependency_job_id":null,"html_url":"https://github.com/skunkworker/rails-vue-ssr-hypernova-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/skunkworker%2Frails-vue-ssr-hypernova-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skunkworker%2Frails-vue-ssr-hypernova-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skunkworker%2Frails-vue-ssr-hypernova-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skunkworker%2Frails-vue-ssr-hypernova-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skunkworker","download_url":"https://codeload.github.com/skunkworker/rails-vue-ssr-hypernova-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221714788,"owners_count":16868495,"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":["hacktoberfest","hypernova","rails-vue-ssr"],"created_at":"2024-10-10T00:09:38.305Z","updated_at":"2025-10-12T16:26:18.003Z","avatar_url":"https://github.com/skunkworker.png","language":"Ruby","readme":"# Rails + Vue SSR example\n\nThis example was made because of the following:\n\n* Use components from `app/javascript` with Rails and SSR.\n* Custom hypernova ruby API implementation with single and batch support.\n* Cachable responses from hypernova.\n\n**Running the example**\nRun the procfile using foreman.\nThen navigate to [localhost:3000](localhost:3000)\n```\nforeman start -f Procfile.dev\n````\n\n**Why wasn't `hypernova-ruby` used?**\n\nHypernova ruby writes to the `document.body` and when trying to cache the result you would get `__hypernova_render_token[0]__`, instead I wrote a simple helper using HTTParty that supports a batch of multiple components rendered together and a singular component render. [See this for more information about this issue](https://github.com/airbnb/hypernova-ruby/issues/15)\n\n\n**How can I add more components?**\n\nIn the hypernova server index file `/vue-ssr/src/index.js` add your own component to the `if/else` block in `getComponent` and import the `.vue` file in the headers. Included is some basic webpack config for easy imports, like `Components/FooBar.vue` to resolve the file `/app/javascript/src/components/FooBar.vue`.\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskunkworker%2Frails-vue-ssr-hypernova-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskunkworker%2Frails-vue-ssr-hypernova-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskunkworker%2Frails-vue-ssr-hypernova-example/lists"}