DEV Community

Discussion on: How do you decide your application port number?

Collapse
 
sabatesduran profile image
Dídac

Well In my case I have a Rails backend that uses by default the port 3000 and the two apps that use this backend are React Apps that by default they use the same port.

What I did is leave the port 3000 to the rails app and then change the port in the package.json of the react apps one with 3001 and the other 3002, with this I can start all the apps together.