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
09778d33
Commit
09778d33
authored
May 24, 2021
by
Xiyang Lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated to run locally
parent
175ef6dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
application.properties
ecom-service/src/main/resources/application.properties
+10
-9
config.js
ecom-web/src/config.js
+2
-2
No files found.
ecom-service/src/main/resources/application.properties
View file @
09778d33
# UNCOMMENT FOR PRODUCTION DEPLOYMENT
# UNCOMMENT FOR PRODUCTION DEPLOYMENT
spring.data.mongodb.uri
=
${MONGOCONNECTION}
#
spring.data.mongodb.uri=${MONGOCONNECTION}
# UNCOMMENT FOR LOCAL TESTING
# 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
spring.data.mongodb.database
=
afp-db
security.enable-csrf
=
false
security.enable-csrf
=
false
#server.port=8087
#server.port=8087
#External IP for Backend Server
#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
(Internal/Cluster IP for Backend Service)
products.apiUrl
=
http://10.0.148.232:8083
#
products.apiUrl=http://10.0.148.232:8083
promos.apiUrl
=
http://10.0.191.126:8082
#
promos.apiUrl=http://10.0.191.126:8082
orders.apiUrl
=
http://10.0.246.138:8086
#
orders.apiUrl=http://10.0.246.138: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 @
09778d33
class
Config
{
class
Config
{
static
baseApiUrl
=
"http://13.91.251.233:8084"
;
//env file
//
static baseApiUrl = "http://13.91.251.233: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