/react-beginners-bootcamp

Repo for the live react beginners' bootcamp

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

React Bootcamp

Build Status Code Analysis dependencies devDependencies GPLv3

React Redux React Router Flow ESLint Jest Yarn Webpack Bootstrap

Welcome apprentice warrior!

TOC

Prerequisites

Signup for

Install on your machine

Setup

  • fork the repo (and star it for good karma)
  • open terminal and run ...
$ git clone git@github.com:YOUR_GITHUB_USERNAME/react-beginners-bootcamp.git
$ cd react-beginners-bootcamp
$ yarn
$ yarn start # starts express server on port 8000
# on another terminal
$ yarn:wds # starts webpack-dev-server on port 7000

Verify

checkout the verify branch: $ git checkout branch verify-setup

development

  • open chrome at http://localhost:8000
  • make sure you see the lovely welcoming message :)
  • go to src/client/index.jsx
  • change something inside the <h1> tag
  • make sure browser refreshes with the changes WITHOUT you doing anything
  • delete line 18 //flow-disable-next-line and make sure you see a warning in your editor. Undo the delete.
  • delete line 20 // eslint-disable-next-line global-require and make sure you see a warning in your editor. Undo the delete.

production

  • run $ yarn prod:build && yarn prod:start in terminal
  • open chrome at http://localhost:8001
  • make sure you see the (still lovely) production message
  • go to src/client/index.jsx and change something inside the <h1> tag
  • make sure the browser does NOT refresh with the changes

Contributing

issues, features requests, and PRs are always always welcomed! :)

License

Code for this bootcamp is available under the GPL v3 license