Skip to content

Latest commit

 

History

History

README.md

Farm React SSR Example

React + React Router + SSR.

Start

npm start; # start the client dev server
npm run watch; # compile and watch the server procution in development mode

Then visit http://localhost:9000.

Build For Production

Build for both client and server.

npm run build && npm run build:server

then launch the production server:

NODE_ENV=production node server.js

Visit http://localhost:3000