I have 2 react applications that I am trying to run locally.
For example:
- I have application number 1 that is login application that run on localhost:3000
- I need application number 2 to run on localhost:3001/portal <= this is a very simple application that does not even have a router baked into it.
My current solution is:
- In application number one is:
BROWSER=none
HOST=localhost
PORT=3000
no homepage property in package.json file.
- In application number 2 I go into
package.jsonfile and addhomepageproperty. I set up my.envfile as:
BROWSER=none
HOST=localhost
PORT=3001
Currently application does get locally deployed for development on https://localhost:3001/portal. However, when I navigate to it all I see is a blank page. I feel like I am missing something and application does not know where to serve files from.
What the set up should be to run 2 applications with on of them on a sub directory?