Commit 09778d33 authored by Xiyang Lu's avatar Xiyang Lu

updated to run locally

parent 175ef6dc
# UNCOMMENT FOR PRODUCTION DEPLOYMENT
spring.data.mongodb.uri=${MONGOCONNECTION}
#spring.data.mongodb.uri=${MONGOCONNECTION}
# UNCOMMENT FOR LOCAL TESTING
#spring.data.mongodb.uri=mongodb+srv://ecom:ecom@e-commerce-db-cluster.va815.mongodb.net/e-commerce-db?retryWrites=true&w=majority
spring.data.mongodb.uri=mongodb+srv://ecom:ecom@e-commerce-db-cluster.va815.mongodb.net/e-commerce-db?retryWrites=true&w=majority
spring.data.mongodb.database=afp-db
security.enable-csrf=false
#server.port=8087
#External IP for Backend Server
#products.apiUrl=http://13.64.175.185:8080
#promos.apiUrl=http://40.118.215.99:8082
#orders.apiUrl=http://138.91.251.222:8086
# UNCOMMENT FOR PRODUCTION DEPLOYMENT
products.apiUrl=http://10.0.148.232:8083
promos.apiUrl=http://10.0.191.126:8082
orders.apiUrl=http://10.0.246.138:8086
# UNCOMMENT FOR PRODUCTION DEPLOYMENT (Internal/Cluster IP for Backend Service)
#products.apiUrl=http://10.0.148.232:8083
#promos.apiUrl=http://10.0.191.126:8082
#orders.apiUrl=http://10.0.246.138:8086
# UNCOMMENT FOR LOCAL TESTING
#products.apiUrl=http://localhost:8083
#promos.apiUrl=http://localhost:8082
#orders.apiUrl=http://localhost:8084
products.apiUrl=http://localhost:8083
promos.apiUrl=http://localhost:8082
orders.apiUrl=http://localhost:8084
class Config {
static baseApiUrl = "http://13.91.251.233:8084"; //env file
//static baseApiUrl = "http://localhost:8080"; //env file
// static baseApiUrl = "http://13.91.251.233:8084"; //env file
static baseApiUrl = "http://localhost:8080"; //env file
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