{"id":28169749,"url":"https://github.com/softkitit/react-market-template","last_synced_at":"2025-09-12T02:42:46.467Z","repository":{"id":186102175,"uuid":"467619376","full_name":"softkitit/react-market-template","owner":"softkitit","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-13T01:26:53.000Z","size":3521,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-21T08:10:21.885Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/softkitit.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-03-08T17:52:57.000Z","updated_at":"2023-07-23T19:18:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"d3a04d37-2775-4fc2-b1d8-5921b1a765cb","html_url":"https://github.com/softkitit/react-market-template","commit_stats":null,"previous_names":["softkitit/react-market-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/softkitit/react-market-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softkitit%2Freact-market-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softkitit%2Freact-market-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softkitit%2Freact-market-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softkitit%2Freact-market-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softkitit","download_url":"https://codeload.github.com/softkitit/react-market-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softkitit%2Freact-market-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274744062,"owners_count":25341136,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"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":[],"created_at":"2025-05-15T16:18:44.692Z","updated_at":"2025-09-12T02:42:46.441Z","avatar_url":"https://github.com/softkitit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Template React Market\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=openchannel_react-market-template\u0026metric=alert_status\u0026token=87fa8424fca9d20e3dffb9bc27bf69d6832e7413)](https://sonarcloud.io/dashboard?id=openchannel_react-market-template)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=openchannel_react-market-template\u0026metric=coverage\u0026token=87fa8424fca9d20e3dffb9bc27bf69d6832e7413)](https://sonarcloud.io/dashboard?id=openchannel_react-market-template)\n\n## Table of Contents\n\n- [About the Project](#about-the-project)\n- [Built With](#built-with)\n- [Getting Started](#getting-started)\n- [Installation](#installation)\n- [Configure dashboard](#configure-dashboard)\n- [Usage](#usage)\n- [Contact](#contact)\n\n## About The Project\n\nThe goal of a marketplace template site is to allow users to browse and install actual applications. This app represents the market site.\n\nFunctional for User:\n\n- Native, SSO login and SAML login.\n- Search approved applications.\n- Work with applications (install/uninstall, preview).\n- Updating profile and organization data.\n- Managing users from your organization. Invite new users.\n\nNote: Unauthorized users can browse Applications.\n\n### Built With\n\n- [Bootstrap](https://getbootstrap.com) v. 4.6.0\n- [React Boostrab](https://react-bootstrap.github.io) v.1.5.2\n- [React](https://reactjs.org) v. 17.0.14\n- [Redux](https://react-redux.js.org/) v.3.6.0\n- [Typescript](https://www.typescriptlang.org/) v.4.2.4\n\n## Getting Started\n\n### Installation\n\n- Install [node.js and npm](https://linuxize.com/post/how-to-install-node-js-on-ubuntu-20-04/):\n\n```\nsudo apt install nodejs npm\n```\n\n- Install the [React](https://www.npmjs.com/package/react) using the npm package manager:\n\n```\nnpm i react\n```\n\n- Install NPM packages\n\n```\nnpm install\n```\n\n2. Optional. Dependency with @openchannel/react-common-services.\n\n```\nnpm install file:\u003cabsolute path to common service project dist/react-common-services\u003e\n```\n\n3. Optional. Dependency with @openchannel/react-common-components.\n\n```\nnpm install file:\u003cabsolute path to common component project dist/react-common-components\u003e\n```\n\n### Configure dashboard\n\n- Openchannel dashboard [https://my.openchannel.io/](https://my.openchannel.io/)\n\nStep 1. Setup OAuth\n\n- Google [guide](https://developers.google.com/identity/protocols/oauth2/openid-connect)\n- Okta guide : [guide](https://developer.okta.com/docs/guides/implement-oauth-for-okta/overview)\n\nStep 2. (Optional) (#type) Note: Dashboard already have default type.\n\n- Follow the link to the dashboard and sign in.\n- On the left sidebar menu, find 'Settings' and open.\n- Then open 'Field Settings'.\n- You must create a new types for tabs:  \n  _'USER'  \n  _'USER ACCOUNT'  \n  _'DEVELOPER'  \n  _'DEVELOPER ACCOUNT'\n\nStep 3. (Optional) (#roles) Note: Dashboard already have default roles.\n\n- Follow the link to the dashboard and sign in.\n- On the left sidebar menu, find 'Users' and open.\n- Then open 'Roles' and click by 'ADD ROLE.\n- Fill name.\n- Then click by 'ADD PERMISSIONS'\n- Select all available permissions.\n- Save.\n\nStep 4. Creating site template, it is portal or market.\n\n- Follow the link to the dashboard and sign in.\n- On the left sidebar menu, find 'Sites' and open.\n- Click by 'CREATE SITE'.\n- In the opened modal fill fields :\n  1. Name\\* - just site name.\n  2. Type\\* - now has two parameters ('Self Hosted' and 'Fully Hosted')  \n     Fully Hosted - the site will be created from scratch.  \n     Self Hosted - you already have your site and want to link it by site domain.\n  3) Template\\* ('Fully Hosted') - select your template type: portal(for developers) or market(for users)\n\nStep 5. Configure site authorization type SSO or Native login.\n\n- Follow the link to the dashboard and sign in.\n- On the left sidebar menu find 'Sites' and open.\n- Find your site and open. (This page configures your site)\n- Find and click by 'SSO'.\n- Find and click by 'ADD IDENTITY CONFIGURATION'.\n\n  \u003e Google config  \n  \u003e *Name : Google  \n  \u003e *Validation Mode : Authorization Code  \n  \u003e *Client ID : 45823498-349823hfjnlfna98r722903470.apps.googleusercontent.com  \n  \u003e *Client Secret : AGSdaskjqASJFnsdfal  \n  \u003e *Issuer : https://accounts.google.com  \n  \u003e *Grant Type : authorization_code  \n  \u003e *Scope : openid profile email  \n  \u003e *Classification : USER | DEVELOPER  \n  \u003e *Developer Organization Type (#type): admin  \n  \u003e *Developer Account Type (#type): admin  \n  \u003e \\*Developer Account Roles (#roles):dev-admin\n  \u003e\n  \u003e \u003e Google claims mappings :  \n  \u003e \u003e *accountId : {{sub}}  \n  \u003e \u003e *organizationName : {{use your custom JWT claim or for test '{{aud}}'  \n  \u003e \u003e *email : {{email}}  \n  \u003e \u003e *name : {{given_name}} {{family_name}}  \n  \u003e \u003e *username : {{name}}  \n  \u003e \u003e *organizationId :{{aud}}\n\n  \u003e Okta config  \n  \u003e *Name : Okta  \n  \u003e *Validation Mode : Authorization Code\n  \u003e Note: ('Authorization Code' - signup used special endpoints, but 'Introspect'\n  \u003e and 'Public key' use all CAP endpoints)  \n  \u003e *Client ID : OAuth clientId  \n  \u003e *Client Secret : OAuth client secret  \n  \u003e *Issuer : https://dev-2468217.okta.com (use your ID into domain)  \n  \u003e *Grant Type : authorization_code  \n  \u003e *Scope : openid profile email  \n  \u003e *Classification : USER | DEVELOPER  \n  \u003e *Developer Organization Type (#type): default  \n  \u003e *Developer Account Type (#type): default  \n  \u003e \\*Developer Account Roles (#roles): dev-admin\n  \u003e\n  \u003e \u003e Okta claims mappings :  \n  \u003e \u003e *accountId : {{sub}}  \n  \u003e \u003e *organizationId : {{idp}}  \n  \u003e \u003e *organizationName : {{name}}-company  \n  \u003e \u003e *email : {{email}}  \n  \u003e \u003e \\*name : {{name}}\n\n### Usage\n\n#### Run project with the remote site configs:\n\n- In order to use different endpoints, need to create .env files, for example .env.dev1 or .env.stage1, each file should contain environments variables:\n\n```\nREACT_APP_API_URL\nREACT_APP_API_URL_DEVELOPMENT\nREACT_APP_MARKETPLACE_NAME\nPORT\nREACT_APP_ENABLE_CMS\n```\n\n- Open file:\n\n```\n/etc/hosts\n```\n\n- Add to file your custom domain. (Note: this domain can be invalid, because used only in 'Origin' headers.)\n\n```\n127.0.0.1 my-custom-domain.com\n```\n\n- Run project with the production environment:\n\n```\nsudo npm run start-with-host my-custom-domain.com\n```\n\n#### Run project with the Moesif plugin for Chrome:\n\n- Install [Moesif](https://chrome.google.com/webstore/detail/moesif-origin-cors-change/digfbfaphojjndkpccljibejjbppifbc/related) CORS plugin for Chrome\n- Submit your work email address there\n- Open advanced settings\n- Fill in the 'Access-Control-Allow-Credentials' `true`\n- Fill in the 'Response headers' field: `http://localhost:4200`\n- Fill in the 'Request Headers' field:\n  (Note: this domain can be invalid, because used only in 'Origin' headers.) `https://my-custom-domain.com`\n- Then start project with command: `npm run start`\n\n## Search engine discoverability\n\nProject contains the `robots.txt` file. This file tells search engine crawlers which URLs the crawler can\naccess on your site. This is used mainly to avoid overloading your site with requests. Access is disallowed to the whole\nsite by default. If you want to allow access, change property:\n\n```\nDisallow: /\n```\n\nto\n\n```\nAllow: /\n```\n\nDocumentation: [https://developers.google.com/search/docs/advanced/robots/create-robots-txt?hl=en](https://developers.google.com/search/docs/advanced/robots/create-robots-txt?hl=en)\n\n## Documentation Compodoc\n\nCompodoc shows project structure. (modules, components, routes etc.)\n\n- Install NPM packages:\n\n```\nnpm install\n```\n\n- Fix Formating:\n\n```\nnpm run format\n```\n\n- Run Linter:\n\n```\nnpm run lint\n```\n\n- Documentation [https://support.openchannel.io/guides](https://support.openchannel.io/guides)\n\n## Troubleshooting\n\nHere is the [solution](https://typicode.github.io/husky/#/?id=command-not-found) if you have problem with '.husky/pre-commit'\n\n## Contact\n\nWebsite: [https://openchannel.io](https://openchannel.io)\n\n## Designs\n\nApp Store Designs: [https://support.openchannel.io/guides/app-store-designs/](https://support.openchannel.io/guides/app-store-designs/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftkitit%2Freact-market-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftkitit%2Freact-market-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftkitit%2Freact-market-template/lists"}