Commit cebb2270 authored by Shaphen Pangburn's avatar Shaphen Pangburn

Merge branch 'master' of https://gitlab.mynisum.com/ascend/ecommerce-maven...

Merge branch 'master' of https://gitlab.mynisum.com/ascend/ecommerce-maven into enhance-product-page-styling
parents a613d241 1da7539f
......@@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: afp-ecom-api-container
image: nexus.mynisum.com/afp-ecom-api:13
image: nexus.mynisum.com/afp-ecom-api:14
imagePullPolicy: Always
ports:
- containerPort: 8084
......
spring.data.mongodb.uri=${MONGOCONNECTION}
spring.data.mongodb.database=e-commerce-db
security.enable-csrf=false
server.port=8080
......@@ -14,13 +14,11 @@ spec:
spec:
containers:
- name: afp-ecom-ui-container
image: nexus.mynisum.com/afp-ecom-ui:2
image: nexus.mynisum.com/afp-ecom-ui:3
imagePullPolicy: Always
ports:
- containerPort: 8085
env:
- name: PORT
value: "8080"
imagePullSecrets:
- name: registry-creds
---
......@@ -32,6 +30,6 @@ spec:
type: LoadBalancer
ports:
- port: 8085
targetPort: 8080
targetPort: 80
selector:
app: afp-ecom-ui
\ No newline at end of file
class Config {
static baseApiUrl = "http://localhost:8080"; //env file
static baseApiUrl = "13.93.237.130:8084"; //env file
static orderHistoryApiUrlMethod = (userId) => `${this.baseApiUrl}/api/orders/byUser/${userId}`;
......
import axios from 'axios';
export const fetchUserCart = userEmail => {
return axios.get(`http://localhost:8080/api/carts/${userEmail}`)
return axios.get(`13.93.237.130:8084/api/carts/${userEmail}`)
}
export const createCart = newCart => {
return axios.post(`http://localhost:8080/api/carts`, newCart)
return axios.post(`13.93.237.130:8084/api/carts`, newCart)
}
export const updateCart = (updatedCart, userEmail) => {
// debugger
return axios.put(`http://localhost:8080/api/carts/${userEmail}`, updatedCart)
return axios.put(`13.93.237.130:8084/api/carts/${userEmail}`, updatedCart)
}
\ No newline at end of file
import axios from 'axios'
export const sendOrderPost = (order) => {
return axios.post("http://localhost:8080/api/orders", order)
return axios.post("13.93.237.130:8084/api/orders", order)
}
\ No newline at end of file
......@@ -6,7 +6,7 @@ export const postUser = (user) => {
}
// export const postUser = (user) => {
// return fetch("http://localhost:8080/api/users", {method: "POST", body: JSON.stringify(user), headers: {"Content-Type": "application/json"}})
// return fetch("13.93.237.130:8084/api/users", {method: "POST", body: JSON.stringify(user), headers: {"Content-Type": "application/json"}})
// }
// export const postLogOutUser = (user) => {
......
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