Walkthrough building a React app. Similar to Angular's tutorial with checking out of steps.
You must have npm installed on your computer.
After node is installed, run this command to install the dependencies:
npm install
We're using gulp as our build system. Gulp helps us build and package up our app to get it ready to deploy.
Install gulp with the command:
npm install gulp -g
You can now start the build process via the command:
gulp
This will build our app and start the watch process that will automaticaly rebuild the app when the code changes.
Follow the steps to see how the app is built. Use git to checkout each step:
git checkout step1
Once you're ready to move on, check out the next step.
Finally start a server with the following:
node server.js
Now visit the running app http://localhost:3000/. Try opening multiple tabs!
Simple Hello World view using in browser JSX transformer.
Add gulp build process to pre-compile JSX and serve files out of dist folder.
Then run the build process with the command:
gulp
Note: You will have to restart the server since we now want the files to be served out of dist.
Add CommentList and CommentForm components.
Add Comment component and examples of its use.
Hook up data model.
Fetching data from the server.
Abstract call to API object, add auto polling.
Form for adding new comments.
Add new comments to CommentList and post to server.
Optimize - Add new comments to state immediately. Support markdown.
CommonJS setup
Testing with Jest