The easiest way would be to configure each project as above. Wherever the port is set, just change it per project (if they are all running at once). If running only one at a time, they can all use the same port.
Example a:
Code:
App a: ... app.listen(3000);
App b: ... app.listen(3001);
Access a via localhost:3000 and b via localhost:3001
Example b:
Code:
App a: ... app.listen(3000);
App b: ... app.listen(3001);
Access a and b via localhost:3000 but only one will run at a time
I assume this is just for development?
Bookmarks