Skip to content

iPlus200/CRUD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD Operations using Spring Boot

A simple, functional example of a CRUD (Create, Read, Update, Delete) application using the Spring Boot framework.


Table of Contents


Features

  • Create: Add new records to the database.
  • Read: Retrieve and view existing records.
  • Update: Modify existing records.
  • Delete: Remove records from the database.

Technologies Used

  • Java
  • Spring Boot
  • Maven
  • (Any database used: H2 / MySQL / PostgreSQL / etc. – adjust as needed)

Prerequisites

Before running this project, make sure you have:

  • Java Development Kit (JDK) 8 or higher
  • Maven
  • An IDE with Spring Boot support (IntelliJ IDEA, Eclipse, VS Code, etc.)

Getting Started

  1. Clone the repository:

    git clone https://github.com/iPlus200/CRUD.git
  2. Navigate to the project directory:

    cd CRUD
  3. Build the project using Maven:

    mvn clean install

Usage

To run the application:

mvn spring-boot:run

By default, the application will start on port 8080. You can interact with the CRUD API endpoints using tools such as Postman, curl, or via a browser (where applicable).


API Endpoints

Here’s an example set of endpoints the application might expose. Adjust paths, request/response schemas according to your code.

Operation HTTP Method URL Description
Create POST /items Create a new record
Read All GET /items Get all records
Read One GET /items/{id} Get a specific record
Update PUT / PATCH /items/{id} Update a specific record
Delete DELETE /items/{id} Delete a specific record

Note: Replace /items with your actual entity path (e.g., /users, /products) as defined in your controllers.


Project Structure

Here’s a quick look at the main parts of the project:

CRUD/
│
├── .mvn/                ← Maven wrapper files  
├── src/                 ← Source code  
│    └── main/
│        ├── java/        ← Java source files (controllers, services, models, etc.)  
│        └── resources/   ← Application properties, configuration, etc.  
├── pom.xml              ← Maven configuration and dependencies  
├── mvnw, mvnw.cmd       ← Maven wrapper scripts  
└── README.md            ← Project documentation  

Contributing

Contributions are welcome! If you’d like to help improve this project:

  1. Fork the repository
  2. Create a new branch with a descriptive name
  3. Make your changes
  4. Submit a Pull Request

Please make sure to follow good coding practices and include tests / documentation as needed.


About

A simple Spring Boot demo project illustrating CRUD (Create, Read, Update, Delete) operations.

About

CRUD Operations using Spring Boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages