{"id":20307211,"url":"https://github.com/oktadev/spring-boot-react-example","last_synced_at":"2025-09-11T08:39:25.299Z","repository":{"id":103824468,"uuid":"112265263","full_name":"oktadev/spring-boot-react-example","owner":"oktadev","description":"Example app showing how to build a Spring Boot REST API and React UI","archived":false,"fork":false,"pushed_at":"2022-07-03T04:33:27.000Z","size":307,"stargazers_count":109,"open_issues_count":0,"forks_count":73,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-11T15:14:12.412Z","etag":null,"topics":["java","oidc","okta","react","reactjs","spring-boot","typescript"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2017/12/06/bootiful-development-with-spring-boot-and-react","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,"zenodo":null}},"created_at":"2017-11-28T00:32:32.000Z","updated_at":"2024-10-25T12:57:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"21ea8fde-fc92-4ef3-a085-68a178c41ce3","html_url":"https://github.com/oktadev/spring-boot-react-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/spring-boot-react-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fspring-boot-react-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fspring-boot-react-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fspring-boot-react-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fspring-boot-react-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/spring-boot-react-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fspring-boot-react-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274602532,"owners_count":25315203,"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-11T02:00:13.660Z","response_time":74,"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":["java","oidc","okta","react","reactjs","spring-boot","typescript"],"created_at":"2024-11-14T17:16:45.294Z","updated_at":"2025-09-11T08:39:25.287Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","readme":"# Spring Boot API with React UI\n \nThis example app shows how to create a Spring Boot API and display its data with a React UI.\n\nPlease read [Bootiful Development with Spring Boot and React](https://developer.okta.com/blog/2017/12/06/bootiful-development-with-spring-boot-and-react) to see how this app was created.\n\n**Prerequisites:** [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) and [Node.js](https://nodejs.org/).\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/spring-boot-react-example.git\ncd spring-boot-react-example\n```\n\nThis will get a copy of the project installed locally. To install all of its dependencies and start each app, follow the instructions below.\n\nTo run the server, cd into the `server` folder and run:\n \n```bash\n./mvnw spring-boot:run\n```\n\nTo run the client, cd into the `client` folder and run:\n \n```bash\nyarn \u0026\u0026 yarn start\n```\n\nThe primary example (without authentication) is in the `master` branch, while the Okta integration is in the `okta` branch. To check out the Okta branch on your local machine, run the following command.\n\n```bash\ngit checkout okta\n```\n\n### Create an Application in Okta\n\nYou will need to [create an OpenID Connect Application in Okta](https://developer.okta.com/blog/2017/12/06/bootiful-development-with-spring-boot-and-react#create-an-oidc-app-in-okta) to get your values to perform authentication. \n\nLog in to your Okta Developer account (or [sign up](https://developer.okta.com/signup/) if you don’t have an account) and navigate to **Applications** \u003e **Add Application**. Click **Single-Page App**, click **Next**, and give the app a name you’ll remember. Change all instances of `localhost:8080` to `localhost:3000` and click **Done**.\n\n#### Server Configuration\n\nSet the `issuer` and copy the `clientId` into `server/src/main/resources/application.properties`. \n\n**NOTE:** The value of `{yourOktaDomain}` should be something like `dev-123456.oktapreview.com`. Make sure you don't include `-admin` in the value!\n\n```properties\nokta.oauth2.issuer=https://{yourOktaDomain}/oauth2/default\nokta.oauth2.clientId={clientId}\n```\n\n#### Client Configuration\n\nSet the `issuer` and copy the `clientId` into `client/src/App.tsx`.\n\n```typescript\nconst config = {\n  issuer: 'https://{yourOktaDomain}/oauth2/default',\n  redirectUri: window.location.origin + '/implicit/callback',\n  clientId: '{clientId}'\n};\n```\n\n## Links\n\nThis example uses the following libraries provided by Okta:\n\n* [Okta Spring Boot Starter](https://github.com/okta/okta-spring-boot)\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 comments on the [blog post](https://developer.okta.com/blog/2017/12/06/bootiful-development-with-spring-boot-and-react), or visit our [Okta Developer Forums](https://devforum.okta.com/). You can also email developers@okta.com if you would like to create a support ticket.\n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fspring-boot-react-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fspring-boot-react-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fspring-boot-react-example/lists"}