
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@genesisx/react-interapp-routing
Advanced tools
Generator for setting up a proxy server for local hosting of multiple react applications.
This Generator allows setting up a proxy server for local hosting of multiple react applications.
yarn add @genesisx/react-interapp-routingnx generate @genesisx/react-interapp-routing:proxy-server --portNo=5006<wsp-root>/gen-proxy.conf.json{
"apps": [
"react-app-1",
"react-app-2"
],
"mainapps": {
"/home": {
"target": "http://localhost:{write-react-app-1-port-here}",
"secure": false
},
"/product": {
"target": "http://localhost:{write-react-app-2-port-here}",
"secure": false
}
}
}
The apps are already served (nx serve)
Run the proxy server now.
By example you can generate these both react apps by running commands bellow:
yarn nx generate @genesisx/react:application react-app-1 4202
yarn nx generate @genesisx/react:application react-app-2 4203
After installation for above npm package:
@genesisx/react-interapp-routingnx generate @genesisx/react-interapp-routing:proxy-server --portNo=<your port number>npm install -g nxThis will start the new proxy server on supplied port
Run nx lint react to execute the lint checks on this package.
Run nx build react to build this package.
Run nx test react to execute the unit tests via Jest.
To publish the package you must first be logged into NPM (npm login) then run this command from the root of the project.
npm publish dist/packages/react-interapp-routing --access public
If you're going to locally develop and run/test this package you need to build it and copy into node_modules with every change. You can simply do this by running a bash command below:
yarn nx run react-interapp-routing:build && cp -R dist/packages/react-interapp-routing/ node_modules/@genesisx/react-interapp-routing/
yarn nx run react-interapp-routing:build && cp -R dist/packages/react-interapp-routing/ node_modules/@genesisx/react-interapp-routing/yarn nx run react:build && cp -R dist/packages/react/ node_modules/@genesisx/react/yarn nx generate @genesisx/react:application react-app-1 4202yarn nx generate @genesisx/react:application react-app-2 4203yarn nx generate @genesisx/react-interapp-routing:proxy-serverProxy Server is now ready, open following url in your browser http://localhost:9200http://localhost:9200/home for react-app-1 or http://localhost:9200/products for react-app-2FAQs
Generator for setting up a proxy server for local hosting of multiple react applications.
We found that @genesisx/react-interapp-routing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.