{"id":20307441,"url":"https://github.com/oktadev/okta-angular-deployment-example","last_synced_at":"2025-08-11T21:16:44.007Z","repository":{"id":38452953,"uuid":"258345771","full_name":"oktadev/okta-angular-deployment-example","owner":"oktadev","description":"Angular + Spring Boot Deployment Example","archived":false,"fork":false,"pushed_at":"2023-02-02T20:22:46.000Z","size":3174,"stargazers_count":4,"open_issues_count":9,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-11T15:15:05.144Z","etag":null,"topics":["angular","aws","aws-s3","deployment","firebase","heroku","netlify","ng-deploy","spring-boot"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2020/05/29/angular-deployment","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":"2020-04-23T22:29:30.000Z","updated_at":"2023-01-25T09:11:06.000Z","dependencies_parsed_at":"2023-02-15T08:01:38.090Z","dependency_job_id":null,"html_url":"https://github.com/oktadev/okta-angular-deployment-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/okta-angular-deployment-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-deployment-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-deployment-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-deployment-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-deployment-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-angular-deployment-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-deployment-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265047848,"owners_count":23703218,"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","aws","aws-s3","deployment","firebase","heroku","netlify","ng-deploy","spring-boot"],"created_at":"2024-11-14T17:17:43.099Z","updated_at":"2025-07-12T20:10:17.127Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Deployment Example\n \nThis example shows how to deploy Angular and Spring Boot to Heroku. It also shows how to deploy Angular to Firebase, Netlify, and AWS S3 using `ng deploy`. \n\nPlease read [Angular Deployment with a Side of Spring Boot](https://developer.okta.com/blog/2020/05/29/angular-deployment) to see how this app was created. This blog post is the 3rd in a series. Other blog posts in this series include:\n\n* [Build a CRUD App with Angular 9 and Spring Boot](https://developer.okta.com/blog/2020/01/06/crud-angular-9-spring-boot-2)\n* [Build Beautiful Angular Apps with Bootstrap](https://developer.okta.com/blog/2020/03/02/angular-bootstrap)\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\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-angular-deployment-example.git\ncd okta-angular-deployment-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 in the `notes-api` directory 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**TIP:** If you get a CORS error, you'll need to add `http://localhost:4200` as a trusted origin on Okta (**API** \u003e **Trusted Origins**).\n\nFor instructions on how to deploy these applications to the cloud, please read the blog post!\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/05/29/angular-deployment), 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-angular-deployment-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-angular-deployment-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-angular-deployment-example/lists"}