https://github.com/xreedev/student-mark-api-springboot
A simple Spring Boot application for managing and tracking student marks, featuring CRUD operations and using an embedded H2 database for testing and development.
https://github.com/xreedev/student-mark-api-springboot
beginner beginner-project crud h2 h2-database java jpa jpa-entities jpa-hibernate maven spring spring-data-jpa spring-mvc springboot springframework
Last synced: 4 months ago
JSON representation
A simple Spring Boot application for managing and tracking student marks, featuring CRUD operations and using an embedded H2 database for testing and development.
- Host: GitHub
- URL: https://github.com/xreedev/student-mark-api-springboot
- Owner: xreedev
- Created: 2024-06-27T05:24:18.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-13T18:29:02.000Z (10 months ago)
- Last Synced: 2025-03-10T22:59:19.420Z (4 months ago)
- Topics: beginner, beginner-project, crud, h2, h2-database, java, jpa, jpa-entities, jpa-hibernate, maven, spring, spring-data-jpa, spring-mvc, springboot, springframework
- Language: Java
- Homepage:
- Size: 69.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MarkProject - Spring Boot
This project is a Spring Boot application designed for managing and tracking student marks. The application includes CRUD operations for handling student data and marks, utilizing Spring Boot's robust framework.
## Features
- **Languages:** Java (Spring Boot)
- **Database:** H2 (Embedded database)
- **Build Tool:** Maven
- **Architecture:** REST API-based structure for interacting with marks and student records
- **Dependency Injection:** Spring Framework## Tech Stack
- **Spring Boot:** Simplifies application development with Java, providing built-in tools for dependency injection, embedded servers, and REST APIs.
- **H2 Database:** Lightweight in-memory database used for rapid development and testing.
- **Maven:** Handles project dependencies and builds.
- **Spring Data JPA:** Provides easy integration with databases using Java Persistence API (JPA) for object-relational mapping.## Project Structure
```bash
C:.
├───.idea
├───markproject
│ ├───src
│ │ └───main
│ │ └───java
│ │ └───com
│ │ └───simplogics
│ │ └───markproject
│ │ ├───controller
│ │ ├───model
│ │ ├───repository
│ │ └───service
└───target
```
- **Controller:** Handles API requests.
- **Model:** Defines the entities for marks and students.
- **Repository:** Manages database interactions.
- **Service:** Implements business logic for mark operations.## APIs
### Endpoints
- `POST /marks`: Add a new mark.
- `GET /marks`: Retrieve all marks.
- `GET /marks/{id}`: Retrieve a specific mark by ID.
- `PUT /marks/{id}`: Update a specific mark.
- `DELETE /marks/{id}`: Delete a specific mark by ID.## How to Use
1. Clone the repository:
```bash
git clone https://github.com/xreedev/markproject-Springboot
cd markproject-Springboot
```
2. Run the project using Maven:
```bash
mvn spring-boot:run
```
3. Access the APIs via Postman or any API client:
- Base URL: `http://localhost:8080`