https://github.com/asepscareer/springboot-postgresql-jpa-hibernate-rest-api
Spring Boot Implementations using PostgreSQL, JPA, and Hibernate
https://github.com/asepscareer/springboot-postgresql-jpa-hibernate-rest-api
api api-rest jpa-hibernate postgresql rest-api springboot
Last synced: 11 months ago
JSON representation
Spring Boot Implementations using PostgreSQL, JPA, and Hibernate
- Host: GitHub
- URL: https://github.com/asepscareer/springboot-postgresql-jpa-hibernate-rest-api
- Owner: asepscareer
- Created: 2022-07-27T08:53:13.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-27T08:57:05.000Z (almost 4 years ago)
- Last Synced: 2025-03-20T18:27:00.601Z (over 1 year ago)
- Topics: api, api-rest, jpa-hibernate, postgresql, rest-api, springboot
- Language: Java
- Homepage:
- Size: 32.5 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## Spring Boot, PostgreSQL, JPA, Hibernate REST API
## Steps to Setup
**1. Clone the repository**
```shell
git clone https://github.com/asepscareer/springboot-postgresql-jpa-hibernate-rest-api.git
```
**2. Configure PostgreSQL**
First, create a database named `libraries`. Then, open `src/main/resources/application.properties` file and change the spring datasource username and password as per your PostgreSQL installation.
**3. Run the app**
Type the following command from the root directory of the project to run it -
```shell
mvn spring-boot:run
```
Alternatively, you can package the application in the form of a JAR file and then run it like so -
```shell
mvn clean package
java -jar target/springboot-postgresql-jpa-0.0.1-SNAPSHOT.jar
```