https://github.com/akullpp/multiple-react-nginx
Completely containerized multiple SPAs created by CRA with client-side routing accessible through an nginx gateway under different paths
https://github.com/akullpp/multiple-react-nginx
Last synced: 11 months ago
JSON representation
Completely containerized multiple SPAs created by CRA with client-side routing accessible through an nginx gateway under different paths
- Host: GitHub
- URL: https://github.com/akullpp/multiple-react-nginx
- Owner: akullpp
- License: mit
- Created: 2018-04-20T23:22:45.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-12T19:46:46.000Z (over 6 years ago)
- Last Synced: 2025-03-06T05:33:11.681Z (over 1 year ago)
- Language: HTML
- Homepage: http://chrysanthium.com/multiple-spa-paths-gateway
- Size: 263 KB
- Stars: 14
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# multiple-react-nginx
Completely containerized multiple SPAs created by CRA with client-side routing accessible through an nginx gateway under different paths as explained in detail [here](http://chrysanthium.com/multiple-spa-paths-gateway).
## Run
```
cd vm
docker-compose up
```
The `foo` SPA will be available at [http://localhost:8080/foo](http://localhost:8080/foo)
The `bar` SPA will be available at [http://localhost:8080/bar](http://localhost:8080/bar)
## Notes
The `docker-compose.yml` is just for convenience and demonstration purposes, of course the containers should be build with the correct `PUBLIC_URL` argument and pushed to a registry by your CI.