Commit 2e34161c authored by Christopher Cottier's avatar Christopher Cottier

update master with Dev branch

parent fe877568
...@@ -41,7 +41,7 @@ public class ProductService { ...@@ -41,7 +41,7 @@ public class ProductService {
public Flux<Promotion> getAllPromotions() { public Flux<Promotion> getAllPromotions() {
return WebClient return WebClient
.builder() .builder()
.baseUrl("http://localhost:8082") .baseUrl(promoManagementUrl)
.build() .build()
.get() .get()
.uri("/api/promos") .uri("/api/promos")
......
...@@ -7,17 +7,17 @@ spring.data.mongodb.uri=mongodb+srv://ecom:ecom@e-commerce-db-cluster.va815.mong ...@@ -7,17 +7,17 @@ spring.data.mongodb.uri=mongodb+srv://ecom:ecom@e-commerce-db-cluster.va815.mong
spring.data.mongodb.database=e-commerce-db spring.data.mongodb.database=e-commerce-db
security.enable-csrf=false security.enable-csrf=false
server.port=8080 server.port=8080
#
#products.apiUrl=http://13.64.175.185:8080 #products.apiUrl=http://13.64.175.185:8080
#promos.apiUrl=http://40.118.215.99:8082 #promos.apiUrl=http://40.118.215.99:8082
#orders.apiUrl=http://138.91.251.222:8086 #orders.apiUrl=http://138.91.251.222:8086
# UNCOMMENT FOR PRODUCTION DEPLOYMENT # UNCOMMENT FOR PRODUCTION DEPLOYMENT
#products.apiUrl=http://13.64.175.185:8080 products.apiUrl=http://13.64.175.185:8080
#promos.apiUrl=http://40.118.215.99:8082 promos.apiUrl=http://40.118.215.99:8082
#orders.apiUrl=http://138.91.251.222:8086 orders.apiUrl=http://138.91.251.222:8086
# UNCOMMENT FOR LOCAL TESTING # UNCOMMENT FOR LOCAL TESTING
products.apiUrl=http://localhost:8083 #products.apiUrl=http://localhost:8083
promos.apiUrl=http://localhost:8082 #promos.apiUrl=http://localhost:8082
orders.apiUrl=http://localhost:8084 #orders.apiUrl=http://localhost:8084
class Config { class Config {
// static baseApiUrl = "http://13.93.237.130:8084"; //env file static baseApiUrl = "http://13.93.237.130:8084"; //env file
static baseApiUrl = "http://localhost:8080"; //env file //static baseApiUrl = "http://localhost:8080"; //env file
static orderHistoryApiUrlMethod = (userId) => `${this.baseApiUrl}/api/orders/byUser/${userId}`; static orderHistoryApiUrlMethod = (userId) => `${this.baseApiUrl}/api/orders/byUser/${userId}`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment