diff --git a/ShoppingCart/Backend/pom.xml b/ShoppingCart/Backend/pom.xml index 7739dac17..055920e9b 100644 --- a/ShoppingCart/Backend/pom.xml +++ b/ShoppingCart/Backend/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 3.1.7-SNAPSHOT + 2.4.5 com.yen @@ -13,6 +13,7 @@ 0.0.1-SNAPSHOT ShoppingCart ShoppingCart + 11 @@ -122,24 +123,36 @@ 2.6 + + + + + - org.postgresql - postgresql + mysql + mysql-connector-java + runtime + + + + mysql + mysql-connector-java + runtime - - org.springframework.boot - spring-boot-maven-plugin - - - paketobuildpacks/builder-jammy-base:latest - - - + + + + + + + + + diff --git a/ShoppingCart/Backend/src/main/resources/application.properties b/ShoppingCart/Backend/src/main/resources/application.properties index 8b1378917..eec51c846 100644 --- a/ShoppingCart/Backend/src/main/resources/application.properties +++ b/ShoppingCart/Backend/src/main/resources/application.properties @@ -1 +1,30 @@ +spring.datasource.url=jdbc:mysql://localhost:3306/shopping_cart +spring.datasource.username=root +spring.datasource.password= +#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +#spring.datasource.initialization-mode=ALWAYS +spring.jpa.hibernate.ddl-auto=update + +#Api Context Path prefix +server.servlet.contextPath=/api + +spring.jpa.open-in-view=true +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect +logging.level.org.hibernate.SQL=debug +spring.jpa.properties.hibernate.globally_quoted_identifiers=true + +STRIPE_PUBLIC_KEY = STRIPE PUBLIC KEY +STRIPE_SECRET_KEY = STRIPE SECRET KEY + +#For development use this url +#baseURL=http://localhost:8081/ +#For production use this url +#baseURL=https://infallible-swartz-b50174.netlify.app + +server.port=9999 +#security.require-ssl=true +#server.ssl.key-store=/etc/letsencrypt/live/remotedevs.org/keystore.p12 +#server.ssl.key-store-password=password +#server.ssl.keyStoreType=PKCS12 +#server.ssl.keyAlias=tomcat \ No newline at end of file diff --git a/ShoppingCart/Backend/src/test/java/com/yen/ShoppingCart/ShoppingCartApplicationTests.java b/ShoppingCart/Backend/src/test/java/com/yen/ShoppingCart/ShoppingCartApplicationTests.java index 152d9cc4f..a24dfc13f 100644 --- a/ShoppingCart/Backend/src/test/java/com/yen/ShoppingCart/ShoppingCartApplicationTests.java +++ b/ShoppingCart/Backend/src/test/java/com/yen/ShoppingCart/ShoppingCartApplicationTests.java @@ -1,13 +1,13 @@ -package com.yen.ShoppingCart; - -import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; - -@SpringBootTest -class ShoppingCartApplicationTests { - - @Test - void contextLoads() { - } - -} +//package com.yen.ShoppingCart; +// +//import org.junit.jupiter.api.Test; +//import org.springframework.boot.test.context.SpringBootTest; +// +//@SpringBootTest +//class ShoppingCartApplicationTests { +// +// @Test +// void contextLoads() { +// } +// +//}