{"id":20245407,"url":"https://github.com/sisense/compose-sdk-react-demo","last_synced_at":"2025-04-10T20:52:04.975Z","repository":{"id":185333700,"uuid":"671621774","full_name":"sisense/compose-sdk-react-demo","owner":"sisense","description":"React demo app showcasing Compose SDK capabilities","archived":false,"fork":false,"pushed_at":"2024-05-07T17:44:01.000Z","size":2232,"stargazers_count":7,"open_issues_count":2,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-24T18:21:23.377Z","etag":null,"topics":["code-samples","compose-sdk"],"latest_commit_sha":null,"homepage":"https://csdk-react.sisense.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sisense.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-07-27T18:39:24.000Z","updated_at":"2024-05-22T21:52:57.000Z","dependencies_parsed_at":"2024-01-26T23:38:22.813Z","dependency_job_id":null,"html_url":"https://github.com/sisense/compose-sdk-react-demo","commit_stats":null,"previous_names":["sisense/compose-sdk-react-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sisense%2Fcompose-sdk-react-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sisense%2Fcompose-sdk-react-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sisense%2Fcompose-sdk-react-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sisense%2Fcompose-sdk-react-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sisense","download_url":"https://codeload.github.com/sisense/compose-sdk-react-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248296930,"owners_count":21080307,"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":["code-samples","compose-sdk"],"created_at":"2024-11-14T09:20:49.666Z","updated_at":"2025-04-10T20:52:04.951Z","avatar_url":"https://github.com/sisense.png","language":"TypeScript","readme":"# Compose SDK React Demo\n\nThis project is built with TypeScript and Vite. It uses Yarn 3.x as the package manager. Vite is a build tool that offers fast and optimized development and production workflows.\n\n## Prerequisites\n\nBefore you begin, make sure you have the following installed on your system:\n\n- [Node.js](https://nodejs.org) (version 16 or higher, 16.17.1 tested)\n- [Yarn](https://yarnpkg.com) (version 3.x)\n\n## Setup Sisense instance\n\nThe demo runs queries against the \"Sample ECommerce\" example data model in your Sisense instance.\nGo to the Data tab, build and start the \"Sample ECommerce\" data model. If you see a green indicator, you have accomplished this step.\n\nAdd http://localhost:5173 to your Sisense instance CORS Allowed Origins configuration. For instructions, see [Cross Origin Resource Sharing](https://docs.sisense.com/main/SisenseLinux/cross-origin-resource-sharing.htm?Highlight=CORS).\n\n## Setup Authentication\n\nCreate a `.env.local` file based on `.env.local.example` and add your Sisense instance url and an authentication method. Inside `main.tsx`, the specified instance url and authentication are passed to the `SisenseContextProvider` component.\n\nIt is recommended to use SSO, Web Access Token, or API token for authentication when using a production Sisense instance.\n\n```bash\n# Specify the sisense instance URL.\nVITE_APP_SISENSE_URL=https://xxxxxxxxxxxxxxxx\n\n# use one of the following authentication method\n# and remove the others or leave others blank\n\n## Web Access Token\nVITE_APP_SISENSE_WAT=xxxxxxxxxxxxxxxxxx\n\n## API Token\nVITE_APP_SISENSE_API_TOKEN=\n\n## SSO Enabled\nVITE_APP_SISENSE_SSO_ENABLED=\n```\n\n## Available Scripts\n\nIn the project directory, after running `yarn install` to install the dependencies, \nyou can run the following scripts using Yarn:\n\n### Development Mode\n\n```bash\nyarn dev\n```\n\nRuns the development server using Vite. This script enables fast HMR (Hot Module Replacement) and provides a streamlined development experience.\n\nOpen the url http://localhost:5173 that matches the url you added to the CORS Allowed Origins configuration.\n\n### Code Linting\n\n```bash\nyarn lint\n```\n\nRuns ESLint to analyze your TypeScript and JSX/TSX files for potential issues. The `--ext` flag specifies the file extensions to be checked, while `--report-unused-disable-directives` and `--max-warnings 0` enforce stricter linting rules.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsisense%2Fcompose-sdk-react-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsisense%2Fcompose-sdk-react-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsisense%2Fcompose-sdk-react-demo/lists"}