This is a modified version of the React comment box example from the React tutorial. The example app has been modified to add Server-Side Rendering, React Router, and Redux.
The Node.js app serves static files from public/
and handles requests to /api/comments
to fetch or add data. Start a server with:
npm install
node server.js
And visit http://localhost:3000/. Try opening multiple tabs!
You can change the port number by setting the $PORT
environment variable before invoking the script, e.g.,
PORT=3001 node server.js
the video app in this master doesn't work as per the expectations