Skip to content

A server to do the frontend using Universal React and CSS Modules

Notifications You must be signed in to change notification settings

edygar/react-render-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A server to do the frontend using Universal React and CSS Modules

Resources

Stars

Watchers

Forks

Packages

No packages published