{"id":20307270,"url":"https://github.com/oktadev/okta-spring-boot-2-angular-9-example","last_synced_at":"2025-04-11T15:10:35.632Z","repository":{"id":38607410,"uuid":"226222305","full_name":"oktadev/okta-spring-boot-2-angular-9-example","owner":"oktadev","description":"CRUD Example with Angular 9.0 and Spring Boot 2.2","archived":false,"fork":false,"pushed_at":"2023-03-01T02:38:22.000Z","size":3026,"stargazers_count":39,"open_issues_count":14,"forks_count":30,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-25T11:11:34.517Z","etag":null,"topics":["angular","angular-9","authentication","kotlin","oidc","spring-boot","typescript"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2020/01/06/crud-angular-9-spring-boot-2","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-12-06T01:39:37.000Z","updated_at":"2024-08-13T04:11:22.000Z","dependencies_parsed_at":"2023-02-04T06:00:51.072Z","dependency_job_id":null,"html_url":"https://github.com/oktadev/okta-spring-boot-2-angular-9-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-boot-2-angular-9-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-boot-2-angular-9-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-boot-2-angular-9-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-boot-2-angular-9-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-spring-boot-2-angular-9-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429104,"owners_count":21101783,"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","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":["angular","angular-9","authentication","kotlin","oidc","spring-boot","typescript"],"created_at":"2024-11-14T17:16:59.981Z","updated_at":"2025-04-11T15:10:35.610Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","readme":"# A CRUD Example App with Angular 9.0 and Spring Boot 2.2\n \nThis example app shows how to build a basic CRUD app with Spring Boot 2.2, Kotlin, Spring Data, and Angular 9.0. Please read [Build a CRUD App with Angular 9 and Spring Boot](https://developer.okta.com/blog/2020/01/06/crud-angular-9-spring-boot-2) to see how this app was created. This blog post is part of a series. Other blog posts in this series include:\n\n- [Build Beautiful Angular Apps with Bootstrap](https://developer.okta.com/blog/2020/03/02/angular-bootstrap)\n- [Angular Deployment with a Side of Spring Boot](https://developer.okta.com/blog/2020/05/29/angular-deployment)\n- [Angular + Docker with a Big Hug from Spring Boot](https://developer.okta.com/blog/2020/06/17/angular-docker-spring-boot)\n\n**Prerequisites:** \n* [Node 12](https://nodejs.org/)+\n* [Java 11](https://adoptopenjdk.net/)+\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-spring-boot-2-angular-9-example.git\ncd okta-spring-boot-2-angular-9-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\n### Spring Boot Configuration\n\nTo create a new OIDC app for Spring Boot on Okta:\n\n1. Log in to your developer account, navigate to **Applications**, and click on **Add Application**.\n2. Select **Web** and click **Next**. \n3. Give the application a name and add `http://localhost:8080/login/oauth2/code/okta` as a login redirect URI. \n4. Click **Done**.\n\nCreate an `okta.env` file and copy your settings into it.\n\n```bash\nexport OKTA_OAUTH2_ISSUER=https://{yourOktaDomain}/oauth2/default\nexport OKTA_OAUTH2_CLIENT_ID={yourClientId}\nexport OKTA_OAUTH2_CLIENT_SECRET={yourClientSecret}\n```\n\n**NOTE:** The value of `{yourOktaDomain}` should be something like `dev-123456.okta.com`. Make sure you don't include `-admin` in the value!\n\nStart your Spring Boot app by navigating to the `notes-api` directory, sourcing this file, and starting your app.\n\n```bash\ncd notes-api\nsource okta.env\n./gradlew bootRun\n```\n\n### Angular Configuration\n\nTo create a new OIDC app for Angular on Okta:\n\n1. Log in to your developer account, navigate to **Applications**, and click on **Add Application**.\n3. Select **Single-Page App** and click **Next**. \n4. Give the application a name, set the login redirect URI to `http://localhost:4200/callback`, and click **Done**.\n\nCopy the `issuer` and `clientId` into `notes/src/app/auth-routing.module.ts`.\n\n```typescript\nconst oktaConfig = {\n  issuer: 'https://{yourOktaDomain}/oauth2/default',\n  redirectUri: window.location.origin + '/callback',\n  clientId: '{yourClientId}',\n  pkce: true\n};\n```\n\nNavigate into the `notes` folder and run:\n \n```bash\nnpm install \u0026\u0026 npm start\n```\n\nOpen your browser to \u003chttp://localhost:4200\u003e, log in, and create notes to your hearts content!\n\n## Links\n\nThis example uses the following open source libraries from Okta:\n\n* [Okta Spring Boot Starter](https://github.com/okta/okta-spring-boot)\n* [Okta Angular SDK](https://github.com/okta/okta-oidc-js/tree/master/packages/okta-angular)\n\n## Help\n\nPlease post any questions as comments on the [blog post](https://developer.okta.com/blog/2020/01/06/crud-angular-9-spring-boot-2), or visit our [Okta Developer Forums](https://devforum.okta.com/).\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%2Fokta-spring-boot-2-angular-9-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-spring-boot-2-angular-9-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-spring-boot-2-angular-9-example/lists"}