Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ecommerce-maven
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
ecommerce-maven
Commits
2e34161c
Commit
2e34161c
authored
May 17, 2021
by
Christopher Cottier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update master with Dev branch
parent
fe877568
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
ProductService.java
...in/java/com/nisum/ecomservice/service/ProductService.java
+1
-1
application.properties
ecom-service/src/main/resources/application.properties
+7
-7
config.js
ecom-web/src/config.js
+2
-2
No files found.
ecom-service/src/main/java/com/nisum/ecomservice/service/ProductService.java
View file @
2e34161c
...
@@ -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"
)
...
...
ecom-service/src/main/resources/application.properties
View file @
2e34161c
...
@@ -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
ecom-web/src/config.js
View file @
2e34161c
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
}
`
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment