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
{{ message }}
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+12-12
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ This is a [single-spa](https://single-spa.js.org/) example React microapp.
20
20
21
21
## Config
22
22
23
-
For available variables config which depend on the running environment (`APPENV=dev` or `APPENV=prod`), please refer to `config/development.js` and `config/production.js`.
23
+
For available variables config which depend on the running environment (`APPENV=dev` or `APPENV=prod`), please refer to `config/dev.js` and `config/prod.js`.
24
24
25
25
For application constants which don't depend on the running environment use `src/constants/index.js`.
26
26
@@ -59,14 +59,14 @@ Make sure you have [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli
59
59
60
60
## How to run Locally for Development
61
61
62
-
TaaS App is done using Single SPA micro-frontend architecture https://single-spa.js.org/. So to start it, we would also have to run Frame App and Navbar App. Here I would show the steps to run locally everything we need.
62
+
TaaS Admin App is done using Single SPA micro-frontend architecture https://single-spa.js.org/. So to start it, we would also have to run Frame App and Navbar App. Here I would show the steps to run locally everything we need.
63
63
64
64
### Local Authentication
65
65
66
66
First of all, to authenticate locally we have to run a local authentication service.
67
67
68
68
- Clone this repository into `taas-admin-app`.
69
-
- Inside the folder `taas-admin-app/local/auth-local` run `npm start`.
69
+
- Inside the folder `taas-admin-app/auth-local` run `npm start`.
70
70
- You would need npm 5+ for it. This would start a local sever on port 5000 which could be used for local Authentication.
71
71
72
72
### Local Domain
@@ -115,7 +115,7 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
115
115
cd micro-frontends-navbar-app
116
116
```
117
117
118
-
Update in file `micro-frontends-navbar-app/blob/dev/config/dev.js` values for `ACCOUNTS_APP_CONNECTOR` and `AUTH` to `http://localhost:5000` so Navbar app which handles authentication uses our local Authentication service.
118
+
Update in file `micro-frontends-navbar-app/config/dev.js` values for `ACCOUNTS_APP_CONNECTOR` and `AUTH` to `http://localhost:5000` so Navbar app which handles authentication uses our local Authentication service.
119
119
120
120
```sh
121
121
# inside folder "micro-frontends-navbar-app" run:
@@ -128,31 +128,31 @@ Some config files are using domain `local.topcoder-dev.com`. You can change it t
128
128
# this host navbar app as http://localhost:3001/navbar/topcoder-micro-frontends-navbar-app.js
129
129
```
130
130
131
-
3. Run **TaaS** micro-app:
131
+
3. Run **TaaS Admin** micro-app:
132
132
133
133
```sh
134
-
# inside folder "taas-app" run:
134
+
# inside folder "taas-admin-app" run:
135
135
136
136
nvm use # or make sure to use Node 10
137
137
npm i # to install dependencies
138
138
139
139
npm run dev
140
140
141
-
# this host TaaS App as http://localhost:8501/taas-app/topcoder-micro-frontends-teams.js
141
+
# this hosts TaaS Admin App as http://localhost:8502/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js
142
142
```
143
143
144
-
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
+
4. Now we have to update the `micro-frontends-frame` app to show our local version of TaaS Admin App, instead of remote one. Update file `micro-frontends-frame/config/micro-frontends-config-local.json`:
- Now open in the browser http://localhost:8080/taas/myteams.
154
+
- Now open in the browser http://localhost:8080/taas-admin.
155
155
- If you are not logged-in yet, you should be redirected to the login page.
156
-
- 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.
156
+
- If you cannot see the application and redirect doesn't happen, make sure that file "http://local.topcoder-dev.com:8502/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js" is loaded successfully in the Network tab.
157
157
158
158
Congratulations, you successfully run the project. If you had some issue, please, try to go through README of https://github.com/topcoder-platform/micro-frontends-frame and https://github.com/topcoder-platform/micro-frontends-navbar-app.
0 commit comments