Skip to content

sumetENG45/react-server-tutorial

 
 

Repository files navigation

Deploy

React Server Tutorial

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.

To use

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!

Changing the port

You can change the port number by setting the $PORT environment variable before invoking the script, e.g.,

PORT=3001 node server.js

About

Code from the React tutorial, modified to add Server-Side Rendering, React Router, and Redux.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.0%
  • CSS 5.0%