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.
|`npm start`| Run server which serves production ready build from `dist` folder |
44
+
|`npm run local`| Run app in the development mode on local machine |
45
+
|`npm run build-dev`| Build app for development and puts files to the `dist` folder |
46
+
|`npm run build-prod`| Build app for production and puts files to the `dist` folder |
47
+
|`npm run lint`| Check code for lint errors |
48
+
|`npm run format`| Format code using prettier |
49
+
|`npm run test`| Run unit tests |
48
50
49
51
## Local Deployment
50
52
51
53
To deploy `micro-frontends-frame` app locally run inside the project root:
52
54
53
55
-`npm i` to install dependencies
54
-
-`npm run dev` to start the app on port `3000`
56
+
-`npm run local` to start the app on port `3000`
55
57
56
58
Note, that to make authorization work locally, you have to use domain `local.topcoder-dev.com` with port `3000`. So you should add into your `/etc/hosts` the line `127.0.0.1 local.topcoder-dev.com` and open app by URL http://local.topcoder-dev.com:3000.
57
59
58
60
## Deployment to Production
59
61
60
62
-`npm i` - install dependencies
61
-
-`npm run build` - build code to `dist/` folder
63
+
-`npm run build-prod` - build code to `dist/` folder
62
64
- Now you can host `dist/` folder using any static server with fallback to `index.html` file for any not found route. For example, you may run a simple `Express` server by running `npm start`.
63
65
64
66
### Deploying to Heroku
@@ -77,7 +79,7 @@ Make sure you have [Heroky CLI](https://devcenter.heroku.com/articles/heroku-cli
77
79
78
80
For adding a child app to the root app make the following steps:
79
81
80
-
1. Add child app path to importmap. User file`micro-frontends-frame/src/public/importmap-local.json` for local deploymentand `micro-frontends-frame/src/public/importmap-production.json` for production:
82
+
1. Add child app path to importmap. File underpath`micro-frontends-frame/config/local.json` for local deployment, `micro-frontends-frame/config/development.json` for development deployment and `micro-frontends-frame/config/production.json` for production deployment:
0 commit comments