Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit af3e50e

Browse files
author
Rajeev Kumar Singh
committed
Readme
1 parent 396c7f2 commit af3e50e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Readme.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## Spring Boot, PostgreSQL, JPA, Hibernate REST API Demo
2+
3+
## Tutorial
4+
5+
Check out the complete tutorial on the CalliCoder blog -
6+
7+
[Spring Boot, PostgreSQL, JPA, Hibernate RESTful CRUD API Example](https://www.callicoder.com/spring-boot-jpa-hibernate-postgresql-restful-crud-api-example/)
8+
9+
## Steps to Setup
10+
11+
**1. Clone the repository**
12+
13+
```bash
14+
git clone https://github.com/callicoder/spring-boot-postgresql-jpa-hibernate-rest-api-demo.git
15+
```
16+
17+
**2. Configure PostgreSQL**
18+
19+
First, create a database named `postgres_demo`. Then, open `src/main/resources/application.properties` file and change the spring datasource username and password as per your PostgreSQL installation.
20+
21+
**3. Run the app**
22+
23+
Type the following command from the root directory of the project to run it -
24+
25+
```bash
26+
mvn spring-boot:run
27+
```
28+
29+
Alternatively, you can package the application in the form of a JAR file and then run it like so -
30+
31+
```bash
32+
mvn clean package
33+
java -jar target/postgres-demo-0.0.1-SNAPSHOT.jar
34+
```

0 commit comments

Comments
 (0)