Skip to content

Angular 8 / React RESTful App that uses as backend: Spring Boot, Jpa Data, Hibernate, H2 DB.

Notifications You must be signed in to change notification settings

davidebruno/Angular8-React-Spring--FullstackApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Angular 8 App

Angular 8 CRUD App that uses as backend: Spring Boot 2, Data, Hiberate 5, H2 DB.

The Backend is built using Spring Boot 2, Data, Hibernate 5, H2 Database, the project is contained into the folder backend and the application can be run using maven.

The Frontend applications execute Create, Read, Update and Delete (CRUD), those operations are executed following the best practice of RESTful API therefore following the convention as below specified:

Http Method - Operation

  GET     ->    READ
  POST    ->    CREATE
  PUT     ->    UPDATE
  DELETE  ->    DELETE

The url that return the list of employees stored on H2 Database (Memory) is:

http://localhost:8080/springboot-crud-rest/api/v1/employees

The information returned is in JSON format as in the following sample:

[{"id":1,"firstName":"Davide","lastName":"Bruno","emailId":"davide.bruno@sample.com"},{"id":2,"firstName":"Tim","lastName":"Sanders","emailId":"tim.sanders@sample.com"}]

The frontend is implemented using Typescript, Angular 8 and other libraries.

To install the packages type: ng install from the base folder of the Angular project.

To start the application type: ng serve, open the broser at the url:

http://localhost:4200/

Sample Demo running the App that performs CRUD operations

React App

The React App uses the same back end as the Angular App, the data on which the CRUD operations are First Name, Last Name and EmailId, on these fields both the Frontend applications execute Create, Read, Update and Delete (CRUD), those operations are executed following the best practice of RESTful API therefore following the convention as below specified:

Http Method - Operation

  GET     ->    READ
  POST    ->    CREATE
  PUT     ->    UPDATE
  DELETE  ->    DELETE

The application starts running the command line:

 npm start

Once started you can open the browser at http://localhost:3000/

Below is the demo executing CRUD operations: