bezkoder / spring-boot-angular-8-crud-example

Spring Boot + Angular 8: CRUD example - fullstack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Boot + Angular 8: CRUD example

In this tutorial, I will show you how to build a full-stack (Spring Boot + Angular 8) example with a CRUD Application. The back-end server uses Spring Boot, Spring Data for REST APIs, front-end side is an Angular 8 App with HttpClient and Form Module.

The Tutorial Application in that:

  • Tutorial has id, title, description, published status.
  • User can create, retrieve, update, delete Tutorials.
  • There is a search box for finding Tutorials by title.

Add an object:

spring-boot-angular-8-crud-example-create-tutorial

Retrieve all objects:

spring-boot-angular-8-crud-example

Click on Edit button to go to a Tutorial page:

spring-boot-angular-8-crud-example-retrieve-tutorial

On this Page, you can:

  • change status to Published using Publish button
  • delete the Tutorial using Delete button
  • update the Tutorial details with Update button

spring-boot-angular-8-crud-example-update-tutorial

Search Tutorials by title:

spring-boot-angular-8-crud-example-search-tutorial

Angular 8 & Spring Boot CRUD Architecture

This is the application architecture we will build:

spring-boot-angular-8-crud-example-architecture

  • Spring Boot exports REST Apis using Spring Web MVC & interacts with embedded Database using Spring Data JPA.
  • Angular Client sends HTTP Requests and retrieve HTTP Responses using axios, shows data on the components. We also use Angular Router for navigating to pages.

Video

This is our Angular Spring Boot CRUD application demo and brief instruction, running with MySQL database:

Angular Spring Boot CRUD application demo

In the video, we use Angular 10, but it has the same logic & UI as Angular version 8 and H2 database in this tutorial.

Tutorial link: Spring Boot + Angular 8: CRUD example

More Practice:

Angular 8 + Spring Boot + MySQL

Angular 8 + Spring Boot + PostgreSQL

Angular 8 + Spring Boot + MongoDB

Angular 8 + Spring Boot: File Upload example

Security:

Angular 8 + Spring Boot: JWT Authentication & Authorization example

About

Spring Boot + Angular 8: CRUD example - fullstack


Languages

Language:TypeScript 53.6%Language:Java 21.0%Language:HTML 18.4%Language:JavaScript 6.1%Language:CSS 0.8%