Skip to content

Commit

Permalink
fix dep, update app conf, disable test
Browse files Browse the repository at this point in the history
  • Loading branch information
yennanliu committed Nov 26, 2023
1 parent 91bf8dc commit 490618c
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 25 deletions.
37 changes: 25 additions & 12 deletions ShoppingCart/Backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.7-SNAPSHOT</version>
<version>2.4.5</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.yen</groupId>
<artifactId>ShoppingCart</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>ShoppingCart</name>
<description>ShoppingCart</description>

<properties>
<java.version>11</java.version>
</properties>
Expand Down Expand Up @@ -122,24 +123,36 @@
<version>2.6</version>
</dependency>

<!-- <dependency>-->
<!-- <groupId>org.postgresql</groupId>-->
<!-- <artifactId>postgresql</artifactId>-->
<!-- </dependency>-->

<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<builder>paketobuildpacks/builder-jammy-base:latest</builder>
</image>
</configuration>
</plugin>
<!-- <plugin>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
<!-- <configuration>-->
<!-- <image>-->
<!-- <builder>paketobuildpacks/builder-jammy-base:latest</builder>-->
<!-- </image>-->
<!-- </configuration>-->
<!-- </plugin>-->
</plugins>
</build>
<repositories>
Expand Down
29 changes: 29 additions & 0 deletions ShoppingCart/Backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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() {
// }
//
//}

0 comments on commit 490618c

Please sign in to comment.