{"id":18646741,"url":"https://github.com/metabase/shoppy","last_synced_at":"2025-04-11T12:31:57.039Z","repository":{"id":243920597,"uuid":"767938628","full_name":"metabase/shoppy","owner":"metabase","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-26T13:12:52.000Z","size":9998,"stargazers_count":15,"open_issues_count":1,"forks_count":3,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-26T13:40:40.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://embedded-analytics-sdk-demo.metabase.com","language":"TypeScript","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/metabase.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}},"created_at":"2024-03-06T07:07:43.000Z","updated_at":"2025-03-26T13:12:57.000Z","dependencies_parsed_at":"2024-06-24T09:09:05.352Z","dependency_job_id":"20a03a0d-ff05-4921-937b-e35dbfc9fda7","html_url":"https://github.com/metabase/shoppy","commit_stats":null,"previous_names":["metabase/shoppy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fshoppy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fshoppy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fshoppy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fshoppy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metabase","download_url":"https://codeload.github.com/metabase/shoppy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248401991,"owners_count":21097328,"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-11-07T06:22:24.939Z","updated_at":"2025-04-11T12:31:57.032Z","avatar_url":"https://github.com/metabase.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shoppy: Embedding SDK demo application\n\nShoppy is a demo application that showcases the capabilities of Metabase's React Embedding SDK. It is a simple e-commerce dashboard that allows shop owers to view and analyze sales data.\n\nThe demo is available at [https://embedded-analytics-sdk-demo.metabase.com](https://embedded-analytics-sdk-demo.metabase.com).\n\n## How to run the demo on your machine\n\nThis demo uses the data from the hosted Metabase Cloud instance and provides a hosted JWT server, therefore you do not need to run the Metabase server and JWT server locally.\n\n- Create local environment files.\n\n  - `cp .env.example .env`\n\n- Install the required dependencies.\n\n  - `yarn`\n\n- Run the React frontend.\n\n  - `yarn dev`\n\n- Visit `http://localhost:3004` in your browser.\n\n## How to develop the SDK locally?\n\n\u003e [!IMPORTANT]  \n\u003e The following sections are for Metabase employees who are working on the embedding SDK.\n\u003e If you are not a Metabase employee, you can skip the following sections.\n\n- Place the metabase repository in `../metabase`\n\n- Open a new terminal and run `yarn build-release:cljs \u0026\u0026 yarn build-embedding-sdk:watch` in the metabase repository. This watches for changes and builds the embedding SDK in development mode.\n\n- Re-run the following command every time you make changes to the embedding SDK's source. This re-links the built SDK to the demo application.\n\n  - `yarn dev:link \u0026\u0026 yarn dev`\n\n### How to run the demo against a local JWT auth server?\n\nIf you cannot use the hosted JWT server, you can run the JWT server locally.\n\n- Update the API server's environment variables in `api/.env`. If you are a Metabase employee, refer to the \"Shoppy - Environment File\" item on the 1Password vault.\n\n- Run the API server.\n\n  - `cd api \u0026\u0026 yarn \u0026\u0026 yarn dev`\n\n- Run the React frontend.\n\n  - `yarn dev:link \u0026\u0026 yarn dev`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetabase%2Fshoppy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetabase%2Fshoppy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetabase%2Fshoppy/lists"}