js_react__react-router-tuto.../lessons/01-setting-up/README.md
Chris Bolin 944256c188 Make <tutorial url> explicit
Make the setup fast and easy :)
2016-03-21 16:24:50 -04:00

33 lines
841 B
Markdown

# Setting up the Project
First you'll need [Node.js](https://nodejs.org) and the package manager
that comes with it: [npm](https://www.npmjs.com/).
Once you've got that working, head to the command line where we'll set
up our project.
## Clone the Tutorial
```
git clone https://github.com/reactjs/react-router-tutorial
cd react-router-tutorial
cd lessons/01-setting-up
npm install
npm start
```
Now open up [http://localhost:8080](http://localhost:8080)
Feel free to poke around the code to see how we're using webpack and npm
scripts to run the app.
You should see a "Hello React Router" message in the browser.
## Make Some Changes
Open up `modules/App.js` and change the text to something like "Hello
<your name>". The browser automatically reloads with your new code.
---
[Next: Rendering a Router](../02-rendering-a-route/)