{"id":20307352,"url":"https://github.com/oktadev/okta-node-express-typescript-react-example","last_synced_at":"2026-03-01T09:32:28.664Z","repository":{"id":41777807,"uuid":"178900413","full_name":"oktadev/okta-node-express-typescript-react-example","owner":"oktadev","description":"Node.js API with TypeScript","archived":false,"fork":false,"pushed_at":"2023-01-06T01:47:11.000Z","size":1536,"stargazers_count":14,"open_issues_count":6,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-11T15:14:47.351Z","etag":null,"topics":["api","nodejs","react","typescript"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2019/05/07/nodejs-typescript-api","language":"TypeScript","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":"2019-04-01T16:11:08.000Z","updated_at":"2023-05-16T17:57:04.000Z","dependencies_parsed_at":"2023-02-05T02:01:24.466Z","dependency_job_id":null,"html_url":"https://github.com/oktadev/okta-node-express-typescript-react-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/okta-node-express-typescript-react-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-express-typescript-react-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-express-typescript-react-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-express-typescript-react-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-express-typescript-react-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-node-express-typescript-react-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-express-typescript-react-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29965605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T06:55:38.174Z","status":"ssl_error","status_checked_at":"2026-03-01T06:53:04.810Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","nodejs","react","typescript"],"created_at":"2024-11-14T17:17:19.192Z","updated_at":"2026-03-01T09:32:28.644Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example App Using Node, TypeScript, and React\n\nThis example app shows how to create a simple real-time chat server using Node and TypeScript, as well as a frontend to interact with it using React. This uses Okta for authentication.\n\nPlease read [Build a Node.js API with TypeScript](https://developer.okta.com/blog/2019/05/07/nodejs-typescript-api) to see how this example was built.\n\n**Prerequisites**: [Node.js](https://nodejs.org/en/).\n\n## Getting Started\n\nTo install this example application, run the following commands:\n\n```bash\ngit clone https://github.com/oktadeveloper/okta-node-express-typescript-react-example.git\ncd okta-node-express-typescript-react-example\nnpm install\n```\n\nThis will install a local copy of the project. You will need to set up some environment variables before the app will run properly.\n\nTo integrate Okta's Identity Platform for user authentication, you'll first need to:\n\n* [Sign up for a free Okta Developer account](https://www.okta.com/developer/signup/)\n* You will get a URL similar to `https://dev-123456.oktapreview.com`.\n  * Save this URL for later\n  * You will also use this URL to login to your Okta account\n\nYou will need to create an application in Okta:\n\n* Log in to your Okta account, then navigate to **Applications** and click the **Add Application** button\n* Select **Single-Page App** and click **Next**\n* Give your application a name (e.g. \"Real-Time Chat\")\n* Click **Done**\n* Save your **Client ID** for later\n\nYour Okta application should have settings similar to the following:\n\n![Okta Application Settings](images/okta-app-settings.png)\n\nYou'll also need to create a token in Okta:\n\n* From your Okta account, navigate to **Tokens** from the **API** dropwon in the header\n* Click **Create Token**\n* Give your token a name (e.g. \"Real-Time Chat\")\n* Click **Done**\n* Save your **Token** for later (if you lose this, you'll need to create another one)\n\nNow create a file called `.env` in the project root and add the following variables, replacing the values with your own from the previous steps.\n\n**.env**\n```bash\nOKTA_ORG_URL=https://{yourOktaOrgUrl}\nOKTA_CLIENT_ID={yourClientId}\nOKTA_TOKEN={yourToken}\n```\n\nNow you can run both the Node backend and the React frontend with the following command:\n\n```bash\nnpm start\n```\n\n## Links\n\nThis example uses the [Okta JWT Verifier](https://github.com/okta/okta-oidc-js/tree/master/packages/jwt-verifier), the [Okta Node SDK](https://github.com/okta/okta-sdk-nodejs), and the [Okta React SDK](https://github.com/okta/okta-oidc-js/tree/master/packages/okta-react).\n\n## Help\n\nPlease [raise an issue](https://github.com/oktadeveloper/okta-node-express-typescript-react-example/issues) if you find a problem with the example application, or visit our [Okta Developer Forums](https://devforum.okta.com/). You can also email [developers@okta.com](mailto:developers@okta.com) if would like to create a support ticket.\n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-node-express-typescript-react-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-node-express-typescript-react-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-node-express-typescript-react-example/lists"}