Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.05 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.05 KB

React Render Server

A least opinionated render-server using React universally.

This project is heavily based on @erikras`s project, but using only few tools and dealing only with the front-end on both server and client.

Styles and Assets Management

Any asset must be imported directly to the javascript file which is going to need it. The imports results in the URL of the asset, or, for styles, the local classes.

For more information, read CSS-Modules.

Installation

npm install

Development

npm run dev

It starts both server on development and client watcher.

The first time it may take a little while to generate the first webpack-assets.json and complain with a few dozen [webpack-isomorphic-tools] (waiting for the first Webpack build to finish) printouts, but be patient. Give it 30 seconds.

Production

npm run build
npm run start