{"id":20307322,"url":"https://github.com/oktadev/okta-react-docker-example","last_synced_at":"2025-09-09T14:11:45.780Z","repository":{"id":38983306,"uuid":"261907739","full_name":"oktadev/okta-react-docker-example","owner":"oktadev","description":"React + Docker Example","archived":false,"fork":false,"pushed_at":"2023-01-07T00:29:28.000Z","size":3521,"stargazers_count":11,"open_issues_count":7,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T15:14:18.660Z","etag":null,"topics":["buildpacks","docker","heroku","pack","react","reactjs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oktadev.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}},"created_at":"2020-05-07T00:07:48.000Z","updated_at":"2025-02-18T01:44:28.000Z","dependencies_parsed_at":"2023-02-06T10:15:43.423Z","dependency_job_id":null,"html_url":"https://github.com/oktadev/okta-react-docker-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/okta-react-docker-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-react-docker-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-react-docker-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-react-docker-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-react-docker-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-react-docker-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-react-docker-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274308406,"owners_count":25261249,"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-09T02:00:10.223Z","response_time":80,"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":["buildpacks","docker","heroku","pack","react","reactjs"],"created_at":"2024-11-14T17:17:13.253Z","updated_at":"2025-09-09T14:11:45.756Z","avatar_url":"https://github.com/oktadev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React + Docker Example\n \nThis example app shows how to use Docker to containerize a React app.\n\n**Prerequisites:** \n\n* [Node 12](https://nodejs.org/)+\n* [Docker](https://docs.docker.com/install/)\n* An [Okta Developer Account](https://developer.okta.com/signup)\n\n\u003e [Okta](https://developer.okta.com/) has Authentication and User Management APIs that reduce development time with instant-on, scalable user infrastructure. Okta's intuitive API and expert support make it easy for developers to authenticate, manage and secure users and roles in any application.\n\n* [Getting Started](#getting-started)\n* [Links](#links)\n* [Help](#help)\n* [License](#license)\n\n## Getting Started\n\nTo install this example application, run the following commands:\n\n```bash\ngit clone https://github.com/oktadeveloper/okta-react-docker-example.git\ncd okta-react-docker-example\nnpm install\n```\n\n### Create an OIDC App on Okta\n\nRegister a new application by going to **Applications** \u003e **Add Application**. On the next screen, choose **Single Page App** and click **Next**.\n\nOn the following screen, you can edit the application's settings. Make sure that the port number is 3000 and the base URI is `http://localhost:3000/`. Change the Login Redirect URI to `http://localhost:3000/callback`. Once you are done, you will see a **Client ID**.\n\n### Configure your Okta Settings\n\nCopy your Okta domain and client ID into `src/App.js`:\n\n```js\nfunction App() {\n  return (\n      \u003cRouter\u003e\n        \u003cSecurity issuer='https://{YourOktaDomain}/oauth2/default'\n                  clientId='{ClientId}'\n                  redirectUri={window.location.origin + '/callback'}\n               pkce={true}\u003e\n          \u003cSecureRoute path='/' exact={true} component={Calendar}/\u003e\n          \u003cRoute path='/callback' component={LoginCallback}/\u003e\n        \u003c/Security\u003e\n      \u003c/Router\u003e\n  );\n}\n```\n\nStart everything with `npm start` and you'll be able to login with React and Okta!\n\n## Links\n\nThis example uses the following open source libraries:\n\n* [React](https://reactjs.org/)\n* [Styled Components](https://styled-components.com/)\n* [Okta React SDK](https://github.com/okta/okta-oidc-js/tree/master/packages/okta-react)\n\n## Help\n\nPlease post any questions as issues in this repository, or visit our [Okta Developer Forums](https://devforum.okta.com/).\n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-react-docker-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-react-docker-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-react-docker-example/lists"}