You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go [Here](https://console.developers.google.com) to create Google OAuth Credentials.
73
+
74
+
75
+
3. Set the CORS in the backend service as shown below.
76
+
```
77
+
go to file on this path => server/common-data-service/src/main/java/com/ujjaval/ecommerce/commondataservice/config/CorsConfig.java
78
+
79
+
public void addCorsMappings(CorsRegistry registry) {
80
+
registry.addMapping("/**").allowedOrigins(<Add your client host URL string here>)
81
+
.allowedMethods("GET", "POST");
82
+
}
83
+
```
69
84
70
85
3. Build all the microservices and run the app using docker-compose. This is done using ./start-all.sh script which creates the network and set the container dependencies based on the config mention in the docker-compose.yml.
71
86
This will build all the jar files and run all the services.
@@ -74,7 +89,7 @@ eCommerce application based on the microservices architecture built using Spring
74
89
```
75
90
76
91
4. If you are making any change in the code then you need to you ./stop-all.sh to clean up the jars created by ./start-all.sh script. Also, you need to remove the images from the docker otherwise it will occupy the image spaces unnecessarily.
77
-
92
+
<br/><br/>
78
93
You can check docker images with below command
79
94
```
80
95
docker images
@@ -86,22 +101,25 @@ eCommerce application based on the microservices architecture built using Spring
86
101
87
102
**Payment Service Test Details:**
88
103
89
-
Credit card no.: 4242 4242 4242 4242
90
-
Expiry: Any future date
91
-
CVV: Any 3-digit number
104
+
Credit card no.: 4242 4242 4242 4242
105
+
Expiry: Any future date
106
+
CVV: Any 3-digit number
92
107
93
108
**Steps to deploy on Heroku using docker-compose:**
94
109
95
110
1. create heroku.yml as docker-compose.yml is not invoked on Heroku.
96
111
112
+
97
113
2. If the application contains a database then install MySQL or any other database
98
-
from Heroku marketplace[https://elements.heroku.com].
99
-
114
+
from Heroku marketplace[https://elements.heroku.com].
115
+
<br/><br/>
100
116
Note: Before installing you need to add credit/debit card info. Without this it
101
117
won't allow you to install the database.
102
118
119
+
103
120
3. Set the config vars based on the database URL.
104
121
122
+
105
123
4. Set the stack:container for the application in order to build with docker-compose.
0 commit comments