Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 2.41 KB

README.md

File metadata and controls

48 lines (37 loc) · 2.41 KB

Boilerplate for using Create React App with SSR (Server side rendering), TypeScript and MobX.

This project is boilerplate for starting a new app via CRA (create react app) with SSR (server side rendering), great documentation and some other modern useful stuff. The only reason for creating this boilerplate is that CRA doesn't support SSR out of the box.

Ultimately server-side rendering is very hard to add in a meaningful way without also taking opinionated decisions. We don’t intend to make such decisions at this time. — Dan Abramov

I hope, someday it will change.

Technology stack

Install dependencies

To install dependencies simply run yarn install.

Developing client app

When developing client app you can run yarn start:client and use the standard development server that CRA provides.

Developing SSR app

Before running the server, you must build client and server app first.

# build client
yarn build:client

# build server
yarn build:server

# run server
yarn start:server

Building documentation

Run yarn start:docs to start a style documentation dev server. Run yarn build:docs to build a production HTML version.

PS

This project is on development, if you have any ideas of improving this boilerplate, don't hesitate to share your ideas as issues.