{"id":20307482,"url":"https://github.com/oktadev/auth0-spring-boot-angular-crud-example","last_synced_at":"2025-04-11T15:12:02.054Z","repository":{"id":156597820,"uuid":"630673940","full_name":"oktadev/auth0-spring-boot-angular-crud-example","owner":"oktadev","description":"Angular and Spring Boot CRUD Example","archived":false,"fork":false,"pushed_at":"2024-01-18T22:28:29.000Z","size":957,"stargazers_count":31,"open_issues_count":0,"forks_count":13,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-25T11:21:26.278Z","etag":null,"topics":["angular","oidc","spa","spring-boot","spring-security"],"latest_commit_sha":null,"homepage":"https://auth0.com/blog/spring-boot-angular-crud/","language":"Java","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}},"created_at":"2023-04-20T22:36:55.000Z","updated_at":"2025-02-12T22:25:51.000Z","dependencies_parsed_at":"2023-12-06T19:25:54.994Z","dependency_job_id":"a34b2cd3-c5a3-4541-a7fe-c902af5b5052","html_url":"https://github.com/oktadev/auth0-spring-boot-angular-crud-example","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fauth0-spring-boot-angular-crud-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fauth0-spring-boot-angular-crud-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fauth0-spring-boot-angular-crud-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fauth0-spring-boot-angular-crud-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/auth0-spring-boot-angular-crud-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429110,"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","oidc","spa","spring-boot","spring-security"],"created_at":"2024-11-14T17:17:51.778Z","updated_at":"2025-04-11T15:12:02.026Z","avatar_url":"https://github.com/oktadev.png","language":"Java","readme":"# Angular and Spring Boot CRUD Example\n\nThis example app shows how to create a Spring Boot API and CRUD (create, read, update, and delete) its data with a beautiful Angular + Angular Material app.\n\nPlease read [Build a Beautiful CRUD App with Spring Boot and Angular](https://auth0.com/blog/spring-boot-angular-crud) to see how it was created or follow [this demo script](demo.adoc).\n\nYou can also watch a demo of this example in the screencast below:\n\n[![Building a CRUD app with Spring Boot and Angular!](static/spring-boot-angular.webp)](https://youtu.be/0pnSVdVn_NM)\n\n**Prerequisites:** [Java 17](http://sdkman.io) and [Node.js 18+](https://nodejs.org/)\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/oktadev/auth0-spring-boot-angular-crud-example.git jugtours\ncd jugtours\n```\n\nThis will get a copy of the project installed locally. You'll need to configure the application with a registered OIDC app for it to start. Luckily, Auth0 makes this easy!\n\n### Use Auth0 for OpenID Connect\n\nInstall the [Auth0 CLI](https://github.com/auth0/auth0-cli) and run `auth0 login` in a terminal.\n\nNext, run `auth0 apps create`:\n\n```shell\nauth0 apps create \\\n  --name \"Bootiful Angular\" \\\n  --description \"Spring Boot + Angular = ❤️\" \\\n  --type regular \\\n  --callbacks http://localhost:8080/login/oauth2/code/okta,http://localhost:4200/login/oauth2/code/okta \\\n  --logout-urls http://localhost:8080,http://localhost:4200 \\\n  --reveal-secrets\n```\n\n\u003e **TIP**: You can also use your [Auth0 dashboard](https://manage.auth0.com) to register your application. Just make sure to use the same URLs as above.\n\nCopy the results from the CLI into an `.okta.env` file:\n\n```shell\nexport OKTA_OAUTH2_ISSUER=https://\u003cyour-auth0-domain\u003e/\nexport OKTA_OAUTH2_CLIENT_ID=\u003cyour-client-id\u003e\nexport OKTA_OAUTH2_CLIENT_SECRET=\u003cyour-client-secret\u003e\n```\n\nIf you're on Windows, name the file `.okta.env.bat` and use `set` instead of `export`:\n\n```shell\nset OKTA_OAUTH2_ISSUER=https://\u003cyour-auth0-domain\u003e/\nset OKTA_OAUTH2_CLIENT_ID=\u003cyour-client-id\u003e\nset OKTA_OAUTH2_CLIENT_SECRET=\u003cyour-client-secret\u003e\n```\n\nThen, run `source .okta.env` (or run `.okta.env.bat` on Windows) to set the environment variables. Start your app and log in at `http://localhost:8080`:\n\n```shell\nsource .okta.env\nmvn spring-boot:run -Pprod\n```\n\nYou can prove everything works by running this project's Cypress tests. Add environment variables with your credentials to the `.okta.env` (or `.okta.env.bat`) file you created earlier.\n\n```shell\nexport CYPRESS_E2E_DOMAIN=\u003cyour-auth0-domain\u003e # use the raw value, no https prefix\nexport CYPRESS_E2E_USERNAME=\u003cyour-email\u003e\nexport CYPRESS_E2E_PASSWORD=\u003cyour-password\u003e\n```\n\nThen, run the Cypress tests and watch them pass:\n\n```shell\nsource .okta.env\ncd app\nng e2e\n```\n\nYou can [view this project's CI pipeline](.github/workflows/main.yml) and see that all its [workflows are passing too](https://github.com/oktadev/auth0-spring-boot-angular-crud-example/actions). 😇\n\n## Links\n\nThis example uses the following open source libraries:\n\n* [Angular](https://angular.io)\n* [Angular Material](https://material.angular.io)\n* [Spring Boot](https://spring.io/projects/spring-boot)\n* [Spring Security](https://spring.io/projects/spring-security)\n\n## Help\n\nPlease post any questions as comments on the [blog post](https://auth0.com/blog/spring-boot-angular-crud), or visit our [Auth0 Community Forums](https://community.auth0.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%2Fauth0-spring-boot-angular-crud-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fauth0-spring-boot-angular-crud-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fauth0-spring-boot-angular-crud-example/lists"}