Skip to content

A simple Spring Boot application for managing student data. The application provides basic CRUD operations on student entities.

Notifications You must be signed in to change notification settings

NCherfaoui/spring-boot-student-management

Repository files navigation

Java CI/CD with Maven

Spring Boot Student Management

This is a simple Spring Boot application for managing student data. The application provides basic CRUD operations on student entities.

Technologies Used

  • Java
  • Spring Boot
  • Maven
  • MySQL

Running the Application

To run the application and its required MySQL database, follow these steps:

  1. Clone the repository:
git clone https://github.com/NCherfaoui/spring-boot-student-management.git
  1. Navigate into the directory:
cd spring-boot-student-management
  1. Start the MySQL database:
docker-compose up -d
  1. Once the database is up and running, start the Spring Boot application:
mvn spring-boot:run
  1. Access the application at http://localhost:8080

This setup ensures that the MySQL database is running before the Spring Boot application starts.

API Endpoints

  • GET /api/v1/student: Fetch all students
  • POST /api/v1/student: Add a new student
  • PUT /api/v1/student/{studentId}: Update an existing student by ID
  • DELETE /api/v1/student/{studentId}: Delete a student by ID

Docker

A Dockerfile is included for containerizing the application and a docker-compose file for running the MySQL database.

To run the database independently, use the following command:

docker-compose up

About

A simple Spring Boot application for managing student data. The application provides basic CRUD operations on student entities.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •