{"id":23855605,"url":"https://github.com/marconi1992/ara-spa-vue","last_synced_at":"2026-02-24T02:32:21.441Z","repository":{"id":39278335,"uuid":"230365218","full_name":"marconi1992/ara-spa-vue","owner":"marconi1992","description":"Implementing Microfrontends in Vue.js SPA using Ara Framework","archived":false,"fork":false,"pushed_at":"2023-01-05T03:44:09.000Z","size":1884,"stargazers_count":4,"open_issues_count":42,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-08T03:40:09.483Z","etag":null,"topics":["ara-framework","microfrontends","spa","vuejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/marconi1992.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":"2019-12-27T03:17:47.000Z","updated_at":"2020-11-25T10:21:19.000Z","dependencies_parsed_at":"2023-02-03T09:16:41.979Z","dependency_job_id":null,"html_url":"https://github.com/marconi1992/ara-spa-vue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marconi1992/ara-spa-vue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marconi1992%2Fara-spa-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marconi1992%2Fara-spa-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marconi1992%2Fara-spa-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marconi1992%2Fara-spa-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marconi1992","download_url":"https://codeload.github.com/marconi1992/ara-spa-vue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marconi1992%2Fara-spa-vue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29769176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T01:40:24.820Z","status":"online","status_checked_at":"2026-02-24T02:00:07.497Z","response_time":75,"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":["ara-framework","microfrontends","spa","vuejs"],"created_at":"2025-01-03T00:59:04.144Z","updated_at":"2026-02-24T02:32:21.415Z","avatar_url":"https://github.com/marconi1992.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ara Framework - Vue SPA example\n\n## Nova Vue\nThe folder `nova-vue` contains a nova generated with [Ara CLI](https://github.com/ara-framework/ara-cli) configured with no SSR.\n\nRun webpack dev server:\n\n```\nyarn dev\n```\n\nThe `client.js` can be consumed on http://localhost:8081/client.js\n\n## Host application\n\nThe host application is a SPA created using [Vue CLI](https://cli.vuejs.org/) with a basic setup using [nova-vue-bridge](https://github.com/ara-framework/nova-vue-bridge).\n\nYou can integrate the Novas (Microfrontends) modifying the `views.json` file. It contains the name of the view and the client-side entry point responsible to render it.\n\n```json\n{\n  \"Example\": \"http://localhost:8081/client.js\"\n}\n```\n\nRun Vue SPA:\n\n```\nyarn serve\n```\n\n##  How does it work?\n\nIt's simple, when the `Nova` component is rendered in a route it renders a placeholder and emits a `NovaMount` event.\n\n```jsx\nimport Nova from 'nova-vue-bridge'\n\nconst routes = [\n  { path: '/', component: Home },\n  { path: '/about', component: Nova, props: { name: 'Example', data: { title: 'About Page' } } }\n]\n```\n\nThen, the host application on `index.js` handle that event loading the Nova entrypoint responsible of rendering the `Example` view.\n\n```js\nimport { loadScript } from 'nova-helpers'\nimport entryPoints from './views.json';\n\ndocument.addEventListener('NovaMount', ({ detail }) =\u003e {\n  const { name } = detail;\n\n  const script = entryPoints[name];\n\n  if (script) {\n    loadScript(script);\n  }\n});\n```\n\nFinally, when the Nova entrypoint is excuted it mounts the view on the placeholder.\n\nRead more [here](https://ara-framework.github.io/website/docs/nova-spa-architecture)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarconi1992%2Fara-spa-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarconi1992%2Fara-spa-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarconi1992%2Fara-spa-vue/lists"}