Basic ReactJS boilerplate w/webpack
NodeJS installation with Homebrew (OSX)
- Open up Terminal
- type: which brew
- If /usr/local/bin/brew is shown skip to step 5
- Install Homebrew by running /usr/bin/ruby -e
$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)
- Install NodeJS by running
brew install node
- Install node dependencies:
npm i
- Start the app on the development server:
npm start
The app should now be available at http://localhost:8081
- Run:
npm run build
Site will be compiled and available in the dist directory
- All front end code is placed in the 'src' directory.
- A static build will be available in the 'dist' directory after running 'npm run build'.
- the react-boilderplate uses the Airbnb JavaScript Style Guide.