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

https://github.com/aytekinkaplan/springbootnewproject

My first Spring Boot Project
https://github.com/aytekinkaplan/springbootnewproject

api database java jpa jpa-hibernate postgresql spring spring-boot

Last synced: 3 months ago
JSON representation

My first Spring Boot Project

Awesome Lists containing this project

README

          

**Spring Boot Student Application**

This project demonstrates a basic Spring Boot application for managing student data. It utilizes JPA for data persistence and exposes a simple REST API endpoint.

**Features:**

* Manages student entities with name, email, and birth date.
* Calculates student age based on birth date (not persisted).
* CRUD operations (Create, Read, Update, Delete) for students.

**Prerequisites:**

* Java 17+
* PostgreSQL database

**Setup:**

1. Clone the repository:

```bash
git clone https://github.com/aytekinkaplan/springbootnewproject.git
```

2. Install dependencies:

```bash
mvn install
```

3. Configure a PostgreSQL database connection (refer to Spring Boot documentation for details on datasource configuration).

**Running the application:**

1. Start the application:

```bash
mvn spring-boot:run
```

2. The application will run on port 8080 by default.

**REST API Endpoint:**

*Currently, there's no implemented API endpoint for student management. You can build upon this project to implement functionalities like:*

* GET `/students`: Retrieve a list of all students.
* GET `/students/{id}`: Retrieve a student by ID.
* POST `/students`: Create a new student.
* PUT `/students/{id}`: Update an existing student.
* DELETE `/students/{id}`: Delete a student.

**Technologies Used:**

* Spring Boot
* Spring Data JPA
* PostgreSQL (optional, for persistence)

**Contributing:**

Feel free to fork this repository and contribute by adding functionalities or improving existing code. Please create pull requests for your changes.

**License:**

This project is licensed under the Apache License 2.0 (see LICENSE file for details).

**Further Exploration:**

* Spring Boot documentation: [https://start.spring.io/](https://start.spring.io/)
* Spring Data JPA documentation: [https://spring.io/projects/spring-data-jpa](https://spring.io/projects/spring-data-jpa)
* PostgreSQL documentation: [https://www.postgresql.org/docs/current/index.html](https://www.postgresql.org/docs/current/index.html)