{"id":14983009,"url":"https://github.com/loiane/crud-angular-spring","last_synced_at":"2025-04-13T00:48:22.848Z","repository":{"id":55062520,"uuid":"498120931","full_name":"loiane/crud-angular-spring","owner":"loiane","description":"🖥 CRUD Angular + Spring demonstrating Has-Many relationship, including tests for the back-end and front-end","archived":false,"fork":false,"pushed_at":"2025-04-11T15:11:17.000Z","size":7313,"stargazers_count":223,"open_issues_count":0,"forks_count":40,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-13T00:48:17.892Z","etag":null,"topics":["angular","angular-material","angular-testing","angularv17","angularv18","java","spring","spring-boot","spring-mvc","springboot","springboot3","springframework"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loiane.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":"2022-05-30T23:09:48.000Z","updated_at":"2025-04-11T15:11:17.000Z","dependencies_parsed_at":"2023-02-18T19:15:29.928Z","dependency_job_id":"28158d17-51e7-437a-803e-2a83c6154693","html_url":"https://github.com/loiane/crud-angular-spring","commit_stats":{"total_commits":380,"total_committers":3,"mean_commits":"126.66666666666667","dds":0.3236842105263158,"last_synced_commit":"3501902fd469fabce85db1dc845d92067efb5dcd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiane%2Fcrud-angular-spring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiane%2Fcrud-angular-spring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiane%2Fcrud-angular-spring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiane%2Fcrud-angular-spring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loiane","download_url":"https://codeload.github.com/loiane/crud-angular-spring/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650437,"owners_count":21139672,"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-material","angular-testing","angularv17","angularv18","java","spring","spring-boot","spring-mvc","springboot","springboot3","springframework"],"created_at":"2024-09-24T14:06:36.040Z","updated_at":"2025-04-13T00:48:22.842Z","avatar_url":"https://github.com/loiane.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REST API with Spring Boot and Angular\n\n![Build](https://github.com/loiane/crud-angular-spring/actions/workflows/build.yml/badge.svg?branch=main)\n\nCRUD Angular + Spring demonstrating Has-Many relationship, with tests.\n\nThis API is to showcase, especially for beginners, what a basic CRUD API that's close to being Production-ready looks like.\n\n## 💻 Tecnologies\n\n- Java 21\n- Spring Boot 3 (Spring 6)\n- Maven\n- JPA + Hibernate\n- MySQL\n- JUnit 5 + Mockito (back-end tests)\n- Angular v19\n- Angular Material\n- Karma + Jasmine (front-end tests)\n\n## ⌨️ Editor / IDE\n\n- Visual Studio Code\n- Java Extensions [link](https://marketplace.visualstudio.com/items?itemName=loiane.java-spring-extension-pack)\n- Angular Extensions [link](https://marketplace.visualstudio.com/items?itemName=loiane.angular-extension-pack)\n\n## Some functionalities available in the API\n\n- ✅ Java model class with validation\n- ✅ JPA repository\n- ✅ JPA Pagination\n- ✅ MySQL database (you can use any database of your preference)\n- ✅ Controller, Service, and Repository layers\n- ✅ Has-Many relationships (Course-Lessons)\n- ✅ Java 17 Records as DTO (Data Transfer Object)\n- ✅ Hibernate / Jakarta Validation\n- ✅ Unit tests for all layers (repository, service, controller)\n- ✅ Test coverage for tests\n- ✅ Spring Docs - Swagger (https://springdoc.org/v2/)\n\n### Not implemented (maybe in a future version)\n\n- Security (Authorization and Authentication)\n- Caching\n- Data Compression\n- Throttling e Rate-limiting\n- Profiling the app\n- Test Containers\n- Docker Build\n\n## Some functionalities available in the front end\n\n- ✅ Angular Standalone components (Angular v16+)\n- ✅ Angular Material components\n- ✅ List of all courses with pagination\n- ✅ Form to update/create courses with lessons (has-many - FormArray)\n- ✅ View only screen\n- ✅ TypedForms (Angular v14+)\n- ✅ Presentational x Smart Components\n- 🚧 Unit and Integration tests for components, services, pipes, guards\n\n## Screenshots\n\nMain Page with Pagination\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./docs/main.jpeg\" alt=\"Main Page\" width=\"100%\"\u003e\n\u003c/p\u003e\n\nForm with One to Many (Course-Lessons)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./docs/form.jpeg\" alt=\"Form Page\" width=\"100%\"\u003e\n\u003c/p\u003e\n\nView Page with YouTube Player\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./docs/view.jpeg\" alt=\"View Page\" width=\"100%\"\u003e\n\u003c/p\u003e\n\n## ❗️Executing the code locally\n\n### Executing the back-end\n\nYou need to have Java and Maven installed and configured locally.\n\nOpen the `crud-spring` project in your favorite IDE as a Maven project and execute it as Spring Boot application.\n\n### Executing the front-end\n\nYou need to have Node.js / NPM installed locally.\n\n1. Install all the required dependencies:\n\n```\nnpm install\n```\n\n2. Execute the project:\n\n```\nnpm run start\n```\n\nThis command will run the Angular project with a proxy to the Java server, without requiring CORS.\n\nOpen your browser and access **http://localhost:4200** (Angular default port).\n\n#### Upgrading Angular\n\n```\nng update\n```\n\nThen\n\n```\nng update @angular/cli @angular/core @angular/cdk @angular/material @angular/youtube-player --force\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floiane%2Fcrud-angular-spring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floiane%2Fcrud-angular-spring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floiane%2Fcrud-angular-spring/lists"}