{"id":20307426,"url":"https://github.com/oktadev/okta-angular-spring-boot-docker-example","last_synced_at":"2025-04-11T15:11:52.523Z","repository":{"id":38460349,"uuid":"267757608","full_name":"oktadev/okta-angular-spring-boot-docker-example","owner":"oktadev","description":"Angular + Spring Boot Docker Example","archived":false,"fork":false,"pushed_at":"2023-02-02T20:21:38.000Z","size":3070,"stargazers_count":14,"open_issues_count":11,"forks_count":12,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-25T11:21:25.392Z","etag":null,"topics":["angular","cloud-foundry","docker","heroku","knative","spring-boot"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2020/06/17/angular-docker-spring-boot","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-05-29T03:36:52.000Z","updated_at":"2022-08-28T07:41:10.000Z","dependencies_parsed_at":"2023-02-15T08:01:43.226Z","dependency_job_id":null,"html_url":"https://github.com/oktadev/okta-angular-spring-boot-docker-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-spring-boot-docker-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-spring-boot-docker-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-spring-boot-docker-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-spring-boot-docker-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-angular-spring-boot-docker-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429111,"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","cloud-foundry","docker","heroku","knative","spring-boot"],"created_at":"2024-11-14T17:17:42.017Z","updated_at":"2025-04-11T15:11:52.503Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","readme":"# Angular + Spring Boot Docker Example\n \nThis example shows how to deploy Angular and Spring Boot apps with Docker. Specifically, it shows how to:\n\n* Build Angular containers with `Dockerfile`\n* Combine Angular and Spring Boot in a JAR\n* Build Docker images with Jib\n* Build Docker images with Buildpacks\n\nPlease read [Angular + Docker with a Big Hug from Spring Boot](https://developer.okta.com/blog/2020/06/17/angular-docker-spring-boot) to see how this example was created. This blog post is the 4th in a series. Other blog posts in this series include:\n\n1. [Build a CRUD App with Angular 9 and Spring Boot](https://developer.okta.com/blog/2020/01/06/crud-angular-9-spring-boot-2)\n2. [Build Beautiful Angular Apps with Bootstrap](https://developer.okta.com/blog/2020/03/02/angular-bootstrap)\n3. [Angular Deployment with a Side of Spring Boot](https://developer.okta.com/blog/2020/05/29/angular-deployment)\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-spring-boot-docker-example.git\ncd okta-angular-spring-boot-docker-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 -Pprod\n```\n\nFor instructions on how to build Docker images and deploy these applications to the cloud, please read the [blog post](https://developer.okta.com/blog/2020/06/17/angular-docker-spring-boot)!\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/06/17/angular-docker-spring-boot), 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-spring-boot-docker-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-angular-spring-boot-docker-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-angular-spring-boot-docker-example/lists"}