{"id":20307238,"url":"https://github.com/oktadev/react-schematics-example","last_synced_at":"2026-05-14T12:33:59.719Z","repository":{"id":42657093,"uuid":"173668181","full_name":"oktadev/react-schematics-example","owner":"oktadev","description":"Use Schematics with React","archived":false,"fork":false,"pushed_at":"2026-03-29T23:46:49.000Z","size":187,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-21T04:54:03.103Z","etag":null,"topics":["react","reactjs","schematics","schematics-cli"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2019/03/05/react-schematics","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-04T03:36:01.000Z","updated_at":"2022-03-29T17:04:25.000Z","dependencies_parsed_at":"2025-03-04T07:31:43.946Z","dependency_job_id":"3a89b8c6-188a-4f75-a925-83b54d9086a5","html_url":"https://github.com/oktadev/react-schematics-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/react-schematics-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Freact-schematics-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Freact-schematics-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Freact-schematics-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Freact-schematics-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/react-schematics-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Freact-schematics-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33025097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["react","reactjs","schematics","schematics-cli"],"created_at":"2024-11-14T17:16:53.001Z","updated_at":"2026-05-14T12:33:59.698Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Use Schematics with React\n\nThis repository is a Schematic implementation that installs reactstrap into React projects. \n\nPlease read [Use Schematics with React and Add OpenID Connect Authentication in 5 Minutes](https://developer.okta.com/blog/2019/03/05/react-schematics) for a tutorial that explains how to build this example.\n\n## Getting Started\n\n**Prerequisites:** [Node 11](https://nodejs.org).\n\nTo install this example, run the following commands:\n\n```sh\ngit clone https://github.com/oktadeveloper/react-schematics-example.git rsi\ncd rsi\n```\n\nRun `npm pack` to package it up so you can install it in a React App.\n\nCreate a React app to test this Schematic and install reactstrap.\n\n```sh\nnpx create-react-app test\ncd test\nnpm link ../rsi\n```\n\nInstall `schematics-cli` and run it:\n\n```\nnpm i -g @angular-devkit/schematics-cli@0.1102.9\nschematics rsi:rsi\n```\n\n## Use OktaDev Schematics\n\nYou can use [@oktadev/schematics](https://github.com/oktadeveloper/schematics) to add authentication with OIDC to a React app. Create a React app with TypeScript.\n\n```\nnpx create-react-app rs --template typescript\n```\n\nThen cd into it and install @oktadev/schematics:\n\n```\nnpm i @oktadev/schematics\nschematics @oktadev/schematics:add-auth\n```\n\nThis will prompt you for your Okta OIDC settings. To get those, install the [Okta CLI](https://cli.okta.com/), open a new terminal window, and run `okta register` to sign up for a new account. If you already have an account, run `okta login`. Then, run `okta apps create`. Select the default app name, or change it as you see fit. Choose **Single-Page App** and press **Enter**.\n\nUse `http://localhost:3000/callback` for the Redirect URI and accept the default Logout Redirect URI of `http://localhost:3000`.\n\nCopy your issuer and client ID into the prompts. When the installation completes, run `npm start` and marvel at your React app with OIDC authentication!\n\n## Help\n\nPlease post any questions as comments on this repo's [blog post](https://developer.okta.com/blog/2019/03/05/react-schematics), or visit our [Okta Developer Forums](https://devforum.okta.com/). \n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Freact-schematics-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Freact-schematics-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Freact-schematics-example/lists"}