A backend-focused Spring Boot application that manages student data using REST APIs and full CRUD functionality.
Built using Java, Spring Boot, Spring Data JPA, and MySQL, following clean code and layered architecture principles.
- Language: Java 17+
- Framework: Spring Boot
- Database: MySQL
- ORM: Spring Data JPA (Hibernate)
- API Style: RESTful APIs
- Build Tool: Maven
- π Full CRUD operations on student records (Create, Read, Update, Delete)
- βοΈ Layered architecture (Controller β Service β Repository)
- ποΈ Clean REST API endpoints
- π‘οΈ Robust and maintainable codebase
- π’οΈ Persistent database using MySQL
- β‘ Project build and dependency management using Maven
src/
βββ main/
βββ java/
β βββ net/springboot/sms/
β βββ controller/ # REST Controllers
β βββ entity/ # JPA Entities
β βββ repository/ # Spring Data JPA Repositories
β βββ service/ # Service Layer (Business Logic)
β βββ SmsApplication.java # Main Class
βββ resources/ βββ application.properties
###clone the repo
git clone https://github.com/SonaliBarik30/Student-Management-System
cd student-management-system
###Configure your database Make sure MySQL is running, then update application.properties:
spring.datasource.url=jdbc:mysql://localhost:3306/student_db
spring.datasource.username=root
spring.datasource.password=your_password
spring.jpa.hibernate.ddl-auto=update
###Create the database manually in MySQL:
CREATE DATABASE student_db;
Run the app Use your IDE or terminal:
./mvnw spring-boot:run
Method Endpoint Description
GET /api/students List all students
POST /api/students Create new student
GET /api/students/{id} Get student by ID
PUT /api/students/{id} Update student
DELETE /api/students/{id} Delete student