/cra-ssr-boilerplate

Simple demo of server-side rendered application which is using create-react-app and supports SEO-friendly URLs.

Primary LanguageJavaScript

Create React App Server-Side Rendering Boilerplate

Simple demo of server-side rendered application which is using create-react-app and supports SEO-friendly URLs.

Features

Run demo

git clone https://github.com/sergei-zelinsky/cra-ssr-boilerplate.git
cd cra-ssr-boilerplate
npm i

Then start create-react-app dev-server

npm start

And start SSR server

npm run watch-ssr

Open http://localhost:4000 in your browser.

Scripts

  • start, build, test, eject - create-react-app's default scripts
  • watch-ssr - start SSR server in development mode
  • build-ssr - build SSR server

Live demo

Live demo is accessible here.