https://github.com/bcfchen/micro-demo-header
https://github.com/bcfchen/micro-demo-header
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bcfchen/micro-demo-header
- Owner: bcfchen
- Created: 2020-03-04T02:10:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-04T04:58:26.000Z (almost 6 years ago)
- Last Synced: 2025-06-14T05:11:40.876Z (7 months ago)
- Language: JavaScript
- Size: 184 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
This projecft is based on the tutorial series:
https://medium.com/@_rchaves_/building-microfrontends-part-i-creating-small-apps-710d709b48b7
## Available Scripts
In the project directory, you can run:
### To run the app with webpack dev server
Run the following command:
`npm start`
### To run the app using Express
Build the application with:
`npm run build`
Transpile the frontend code with:
`npm run transpile`
Start the Express server with:
`npm run start:prod`
## To run in a docker container
First build the docker image by:
`docker build . -t micro-demo-header`
Then run a docker container using this image
`docker run -t -i -p 8080:8080 micro-demo-header`