Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 090fd8c

Browse files
Merge pull request #285 from topcoder-platform/dev
[PROD] Next Release
2 parents 2158e6e + 89e819b commit 090fd8c

File tree

487 files changed

+15534
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

487 files changed

+15534
-73
lines changed

README.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
7575
### Run Applications
7676

7777
1. Run **Frame** App:
78+
7879
```sh
7980
git clone https://github.com/topcoder-platform/micro-frontends-frame.git
8081
cd micro-frontends-frame
81-
8282
# inside folder "micro-frontends-frame" run:
8383

8484
nvm use # or make sure to use Node 10
@@ -90,6 +90,8 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
9090
export APPENV="local-multi"
9191

9292
npm run local-server
93+
94+
# this would start frame server on http://localhost:3000
9395
```
9496

9597
open one more terminal window in the same folder and run:
@@ -101,9 +103,12 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
101103
export APPENV="local-multi"
102104
103105
npm run local-client
106+
107+
# this host frame client code on http://localhost:8080
104108
```
105109

106110
2. Run **Navbar** micro-app:
111+
107112
```sh
108113
git clone https://github.com/topcoder-platform/micro-frontends-navbar-app.git
109114
cd micro-frontends-navbar-app
@@ -118,18 +123,33 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
118123
npm i # to install dependencies
119124
120125
npm run dev
126+
127+
# this host navbar app as http://localhost:3001/navbar/topcoder-micro-frontends-navbar-app.js
121128
```
122129

123130
3. Run **TaaS** micro-app:
131+
124132
```sh
125133
# inside folder "taas-app" run:
126134
127135
nvm use # or make sure to use Node 10
128136
npm i # to install dependencies
129137
130138
npm run dev
139+
140+
# this host TaaS App as http://localhost:8501/taas-app/topcoder-micro-frontends-teams.js
131141
```
132142

143+
4. Now we have to update the `micro-frontends-frame` app to show our local version of TaaS App, instead of remote one. Update file `micro-frontends-frame/config/micro-frontends-config-local.json`:
144+
145+
```js
146+
// replace line
147+
"@topcoder/micro-frontends-teams": "https://platform.topcoder-dev.com/taas-app/topcoder-micro-frontends-teams.js",
148+
149+
// with line:
150+
"@topcoder/micro-frontends-teams": "http://localhost:8501/taas-app/topcoder-micro-frontends-teams.js",
151+
```
152+
133153
- Now open in the browser http://localhost:8080/taas/myteams.
134154
- If you are not logged-in yet, you should be redirected to the login page.
135155
- If you cannot see the application and redirect doesn't happen, make sure that file "http://local.topcoder-dev.com:8501/taas-app/topcoder-micro-frontends-teams.js" is loaded successfully in the Network tab.

config/dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
CONNECT_WEBSITE_URL: "https://connect.topcoder-dev.com",
1111

1212
API: {
13-
V5: "https://api.topcoder-dev.com/v5",
13+
V5: "https://api.topcoder-dev.com/v5", //"http://localhost:3030/api/v5"
1414
V3: "https://api.topcoder-dev.com/v3",
1515
},
1616
};

package-lock.json

+39-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"classnames": "^2.2.6",
6262
"express": "^4.17.1",
6363
"faker": "^5.5.3",
64+
"file-loader": "^6.2.0",
6465
"final-form": "^4.20.1",
6566
"final-form-arrays": "^3.0.2",
6667
"immutability-helper": "^3.1.1",
Loading
Loading

0 commit comments

Comments
 (0)