Skip to content

Commit

Permalink
Updating application.properties.template
Browse files Browse the repository at this point in the history
  • Loading branch information
Aayush-Agnihotri committed Nov 7, 2024
1 parent 9f2e458 commit df729e0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,34 @@ Before setting up the project, ensure you have the following installed:

### 2. Create application.properties

Create a new `application.properties` file located in src/main/resources/ by copying the `application.properties.template` file in the same directory. Fill in the values for the fields below with your MySQL credentials:
Create a new `application.properties` file located in `src/main/resources/` by copying the `application.properties.template` file in the same directory. Run:

- spring.datasource.username=
- spring.datasource.password=
`cp application.properties.template application.properties`

Change `spring.datasource.url=` if you are not hosting a MySQL instance locally.
Fill in the values in `application.properties` for the fields below with your MySQL credentials:

- `spring.datasource.username`
- `spring.datasource.password`

Change `spring.datasource.url` if you are not hosting a MySQL instance locally.

### 3. Set up the Database

Enter the MySQL Shell by running:

mysql -u {MYSQL USERNAME} -p
`mysql -u {MYSQL USERNAME} -p`

Create the all_in database with:

CREATE DATABASE all_in;
`CREATE DATABASE all_in;`

### 4. Running the project

Run:

- mvn -N wrapper:wrapper
- pip install pre-commit
- ./mvnw spring-boot:run
- `mvn -N wrapper:wrapper`
- `pip install pre-commit`
- `./mvnw spring-boot:run`

### 5. Documentation

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
spring.datasource.url=jdbc:mysql://localhost:3306/all_in
spring.datasource.username=
spring.datasource.password=
spring.jpa.hibernate.ddl-auto=update
spring.jpa.hibernate.ddl-auto=create-drop

spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.show-sql=true
Expand Down

0 comments on commit df729e0

Please sign in to comment.