{"id":20307449,"url":"https://github.com/oktadev/okta-angular-bootstrap-example","last_synced_at":"2025-04-11T15:12:19.271Z","repository":{"id":38452950,"uuid":"242789548","full_name":"oktadev/okta-angular-bootstrap-example","owner":"oktadev","description":"Angular with Bootstrap Example","archived":false,"fork":false,"pushed_at":"2023-03-01T02:38:27.000Z","size":3263,"stargazers_count":2,"open_issues_count":12,"forks_count":11,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-25T11:21:28.546Z","etag":null,"topics":["angular","angular9","bootstrap","css","sass"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2020/03/02/angular-bootstrap","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":"2020-02-24T16:45:35.000Z","updated_at":"2023-10-12T23:54:25.000Z","dependencies_parsed_at":"2023-02-15T08:01:36.861Z","dependency_job_id":null,"html_url":"https://github.com/oktadev/okta-angular-bootstrap-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-angular-bootstrap-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-bootstrap-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-bootstrap-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-bootstrap-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-angular-bootstrap-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429113,"owners_count":21101784,"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","angular9","bootstrap","css","sass"],"created_at":"2024-11-14T17:17:44.243Z","updated_at":"2025-04-11T15:12:19.246Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","readme":"# Angular 9.0 + Bootstrap\n \nThis example app shows how to add Bootstrap to an Angular 9 app, configure validation, and implement searchable, sortable, and pageable data. Please read [Build Beautiful Angular Apps with Bootstrap](https://developer.okta.com/blog/2020/03/02/angular-bootstrap) to see how this app was created. This blog post is the 2nd 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* [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\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-bootstrap-example.git\ncd okta-angular-bootstrap-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**.\n2. Select **Single-Page App** and click **Next**. \n3. Give the application a name and set the login redirect URI to `http://localhost:4200/callback`\n4. 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\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/03/02/angular-bootstrap), 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-angular-bootstrap-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-angular-bootstrap-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-angular-bootstrap-example/lists"}