Spring Boot + Angular 9 CRUD Example Tutorial

Go to Part 1
Hello everyone, this is my 1200th tutorial on this website and I hope you guys find this blog website useful. Read about me and follow me at https://www.javaguides.net/p/about-me.html.

In this tutorial, we will learn how to develop a CRUD (Create, Read, Update, Delete) Web 
Application using Angular 9 as a front-end and Spring boot 2 restful API as a backend.
Check out Angular 8 with spring boot 2 integration example at Spring Boot + Angular 8 CRUD Example Tutorial.
Check out Angular 7 with spring boot 2 integration example at Spring Boot 2 + Angular 7 CRUD Example.
Check out Angular 6 with spring boot 2 integration example at Spring Boot + Angular 6 CRUD Example.
You can download the source code of this tutorial from my GitHub repository at the end of this tutorial.

Check out Angular 8 + Spring Boot Basic Authentication Example - You can implement basic login and logout features in this CRUD example. All the REST calls made from Angular to Spring Boot will be authenticated using Basic Authentication.

What’s New In Angular 9?

Angular 9’s most prominent new feature is Ivy. Ivy is Angular’s new compiler and renderer. The renderer is the engine that takes your components and templates and translates them into instructions that manipulate the DOM. Ivy is an internal component, so you don’t interact with it directly. However, it can have a significant impact on your code, yielding much smaller JavaScript bundles and increasing performance.

Read more about Angular Ivy at https://angular.io/guide/ivy.

Simply put: upgrading to Angular 9 will make your web apps faster!

Other notable features in Angular 9 include:
  • Enhancements to Angular CLI to support internationalization (i18n)
  • Type-safe improvements to TestBed for unit testing.
To use Angular CLI’s i18n feature, you simply need to add the i18n attribute to your text elements, then run ng xi18n to extract your localizable text into a file.

Spring Boot + Angular 9 CRUD Example Tutorial - 5 Part Series

To keep it simple, I divide this tutorial into 5 parts and here are the topics that I am going to cover in each Part.

1. Spring Boot + Angular 9 CRUD Tutorial - Part 1 - Develop Spring Boot CRUD Rest APIs

  • create employee
  • list employee
  • delete employee
  • update employee
  • get employee by id
2. Spring Boot + Angular 9 CRUD - Part 2 - Create an Angular 9 App
  • Install the latest version of Angular CLI
  • Create Angular 8 client application using Angular CLI
  • Identify Components, Services, and Modules
  • Create Service & Components using Angular CLI
  • Integrate JQuery and Bootstrap with Angular
3. Spring Boot + Angular 9 CRUD - Part 3 - Develop Angular 9 CRUD Operations
  • Create an Employee class
  • Employee Service
  • Creating Employee List Template and Component
  • Create Add Employee Template and Component
  • Update Employee Template and Component
  • Create View Employee Details Template and Component
4. Spring Boot  + Angular 9 CRUD, Part 4 - Angular 9 CRUD App Configuration
  • npm package.json - Configure Dependencies
  • App Routing Module
  • App Component
  • App Component Template
  • App Module
  • Main Index Html File
  • Main (Bootstrap) File
  • Polyfills
  • TypeScript tsconfig.json
5. Spring Boot 2 + Angular 9 CRUD, Part 5 - Running Angular 9 CRUD App
  • Running Angular 8 Client Application
  • Demo

    Features Implementation

    • Create an Employee
    • Update an Employee
    • List of Employees
    • Delete Employee
    • View Employee
    • You will develop your first FULL STACK Application with Angular 8 and Spring Boot.

    What we will build?

    Basically, we will create two projects:
    1. springboot2-jpa-crud-example: This project is used to develop CRUD RESTFul APIs for a simple Employee Management System using Spring Boot 2, JPA and MySQL as a database.
    2. angular9-springboot-client: This project is used to develop single page application using Angular 9 as front-end technology. This Angular 9 application consumes CRUD Restful APIs developed and exposed by a springboot2-jpa-crud-example project.
    Below are the screenshots shows UI of our Employee Management System App:

    Employee List Page

    Add Employee Page

    Update Employee Page

    View Employee Details Page

    Delete Employee

    Tools and technologies used

    Server-side technologies

    • Spring Boot - 2.0.5.RELEASE
    • JDK - 1.8 or later
    • Spring Framework - 5.0.8 RELEASE
    • Hibernate - 5.2.17.Final
    • Spring Data JPA - 2+

    Front end technologies

    • Angular 9
    • Bootstrap 4
    • npm- 6.9.0
    • JQuery
    • Node js 10+

    Tools

    • Maven - 3.2+
    • IDE - Eclipse or Spring Tool Suite (STS) // Spring boot API development
    • Visual Studio 2017 // Angular App development
    • Angular CLI

    Move to Part 1 - Develop Spring Boot CRUD Rest APIs

    In the next part 1 of this tutorial series, we will learn how to create CRUD REST APIs using Spring Boot 2.

    Use below links to visit different parts of this tutorial:

    1. Spring Boot + Angular 9 CRUD Example Tutorial - Main Tutorial
    2. Spring Boot + Angular 9 CRUD Tutorial - Part 1 - Develop Spring Boot CRUD Rest APIs
    3. Spring Boot + Angular 9 CRUD - Part 2 - Create an Angular 9 App
    4. Spring Boot + Angular 9 CRUD - Part 3 - Develop Angular 9 CRUD Operations
    5. Spring Boot  + Angular 9 CRUD, Part 4 - Angular 9 CRUD App Configuration
    6. Spring Boot 2 + Angular 9 CRUD, Part 5 - Running Angular 9 CRUD App
    Go to Part 1

    Comments

    1. Very useful tutorial with great explanation.

      ReplyDelete
    2. could you please implement login module from angular to spring boot rest (as user will send login credentials from angular as a frontend and validate against stored data in database i.e. mysql of spring rest)

      ReplyDelete

    Post a Comment