The first steps to getting started are the following:
- Download and install NodeJS
- If you are using Windows, restart your computer
- Open a command line and issue the following command:
npm install -g create-react-app
(NOTE: if you're using MacOS or *NIX, you may need to prependsudo
to this command)
In order to speed up the process, you may want to initialize your applicaiton ahead of time. This is because, during the talk, if everyone were to install all of the dependencies at the same time, the wifi would slow to a crawl. If you want to avoid this, please open a command line, navigate to your development directory of choice, and run the following commands:
create-react-app hello-react
-- This step will probably take a whilecd hello-react
- To test that everything worked so far, run
npm start
and wait for it to open a browser window tohttp://localhost:3000/
and see a sample application
The application that was initialized is using bare-bones react without any extra tooling. In order to get ready to build the application during the talk we need to install a few more dependencies. To do this, while still in the hello-react
directory, run the following commands:
npm install --save rctui redux react-redux redux-persist redux-thunk
npm install --save-dev redux-devtools redux-devtools-dock-monitor redux-devtools-log-monitor
You should be all set!