Skip to content

bruno-silverio/spring-boot-user-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

User CRUD Operations with a Spring Boot REST API

An entire CRUD application will be created with a Spring Boot REST API using Spring Data JPA, and on the front-end, Bootstrap with HTML, JavaScript, and jQuery will be used. The data will be stored in a PostgreSQL database.

Order of development

  • Install the development tools
  • Create the Spring Boot REST API project with Maven
  • Create the model and table in the database
  • Create the repository with Spring Data
  • Create an endpoint to list all users
  • Install Postman for REST API testing
  • Create an endpoint to save data to the database
  • Create an endpoint to delete from the database
  • Create an endpoint to search and update in the database
  • Create an endpoint to query by name
  • Install Maven to generate the deployment JAR on the server
  • Define the application context
  • Generate the Spring Boot JAR with Maven
  • Create the home page with Bootstrap
  • Install jQuery in the project
  • Save data with AJAX, sending to the REST API at the save endpoint
  • Create a modal screen to search and edit with an endpoint
  • Create the delete routine with an endpoint
  • Make final adjustments to the layout

🚦 How to use the project (instructions)

How to run

./spring-boot-user-crud >

mvn clean && mvn install -DskipTests
mvn spring-boot:run

http://localhost:8000/spring-boot-user-crud/

demonstration.mp4

🔗 Links