An open API service indexing awesome lists of open source software.

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.

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`