Skip to content

Commit

Permalink
modify README
Browse files Browse the repository at this point in the history
  • Loading branch information
HliasMpGH committed Feb 29, 2024
1 parent 5a1e9ca commit 9f7ac5e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ This project represents a Spring Boot server application hosted locally, designe
- Maven
- Spring Boot

## Setting Up Database Credentials

1. Navigate to the [src/main/resources](gui/src/main/resources) directory in the project.

2. Open the `[application.properties](gui/src/main/resources/application.properties)` file in a text editor.

3. Locate the database configuration section. You'll find properties like
`spring.datasource.username`, and `spring.datasource.password`.

5. Set your desired username and password for the H2 embedded database. For example:

```properties
spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=myusername
spring.datasource.password=mypassword

## Local Server Handler

The local server handler is a Java application responsible for managing the Spring Boot server. It handles start and stop requests, coordinates with other components of the larger application, and ensures smooth operation of the server.
Expand Down
8 changes: 3 additions & 5 deletions gui/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
spring.datasource.generate-unique-name=false
spring.datasource.name=bookservice
spring.datasource.url=jdbc:h2:mem:bookservice
spring.datasource.driverClassName=org.h2.Driver
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.h2.console.enabled=true
spring.datasource.username=
spring.datasource.password=
spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.username=root
spring.datasource.password=root

0 comments on commit 9f7ac5e

Please sign in to comment.