https://github.com/unadlib/fronts-example
https://github.com/unadlib/fronts-example
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/unadlib/fronts-example
- Owner: unadlib
- License: mit
- Created: 2021-05-11T15:56:12.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-19T12:48:49.000Z (about 5 years ago)
- Last Synced: 2025-02-26T15:22:09.552Z (over 1 year ago)
- Language: TypeScript
- Size: 156 KB
- Stars: 9
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fronts-example
A simple example for Fronts
## Installation
```sh
yarn install
```
## Development
```sh
yarn start
```
Runs the apps in the development mode, and open [http://localhost:3001](http://localhost:3001) to view App1, and open [http://localhost:3002](http://localhost:3002) to view App2 in the browser.
```sh
cd packages/app1 && SPA=true yarn start
```
Runs the app1 in non-micro-frontends mode.
## Build
```sh
yarn build
```
Build the projects, and build files are stored in the `dist/` directory. Use the `--mode=production` flag for a production build.
## Serve
```sh
yarn serve
```
Serve the projects with the `dist/` directory source, and open [http://localhost:3001](http://localhost:3001) to view App1, and open [http://localhost:3002](http://localhost:3002) to view App2 in the browser.