React tutorial - how do I start the node server for a reactJs application?

Marc picture Marc · Mar 2, 2016 · Viewed 53.1k times · Source

I'm just starting the react.js tutorial, I've downloaded the files and then it mentions:

"Follow your progress by opening http://localhost:3000 in your browser (after starting the server). "

I know this may sound stupid, (bear with me since I'm a beginner with React) but how do I start the server in this instance?

Thanks.

Marc

Answer

Carl Vitullo picture Carl Vitullo · Mar 3, 2016

Pretty solid chance it's npm start from the project root.

Properly packaged modules will have some node scripts configured in package.json. It's customary to use start as the script to run the dev environment, though some might use build, dev, or other names.