appendix-a
Appendix A. Installing applications used in this book
In this appendix, you’ll find installation instructions for the following applications (valid as of May 2017):
- React v15
- Node.js v6 and npm v3
- Express v4
- Twitter Bootstrap v3
- Browserify
- MongoDB
- Babel
You can download React in a myriad of ways:
- Hotlink to the file on a content-delivery network (CDN) such as Cloudflare: https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react.js or https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.js (full list: https://cdnjs.com/libraries/react).
- Download the file from a React website such as http://facebook.github.io/react/downloads.html or https://github.com/facebook/react.
- Use npm (see the next section), as in npm install react@15 react-dom@15. You don’t need to be concerned about rendering React on servers right now. react.js is in node_modules/react/dist.
- Use Bower (http://bower.io) with bower install --save react.
- Use Webpack/Grunt/Browserify/Gulp to bundle from npm modules.
If you’re unsure whether you have Node.js and npm, or you don’t know what version you have, run these commands in your Terminal/iTerm/bash/zsh/command line:
Most of the time, npm comes with Node.js, so follow the instructions for Node.js to install npm. The easiest way to install Node and npm is to go to the website and pick the right architecture for your computer (Windows, macOS, and so on): https://nodejs.org/en/download.