diff --git a/README.md b/README.md index 10e7976..44903d7 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/main/resources/application.properties.template b/src/main/resources/application.properties.template index 2a0562d..6ad5f4d 100644 --- a/src/main/resources/application.properties.template +++ b/src/main/resources/application.properties.template @@ -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