Skip to content

mstrluke/react-ssr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Isomorphic (SSR, CSR)

This template is made for developers who are tired of finding a good quick start template. The template is flexible to upgrade. Use it as you want.

Supported features

  • Server Side Rendering
  • Client Side Rendering
  • Isomorphic Rendering
  • Hot Module Replacement
  • Webpack Dev Server
  • Code splitting
  • Components Lazy Loading
  • Docker wrapper
  • CSS and SCSS Support

Todo features

  • React Context API
  • API config

Installation

Clone and install the dependencies

$ git clone https://github.com/mstrluke/react-ssr.git
$ cd react-ssr
$ yarn install

How to run via npm or yarn

Before start your are should copy envs from .env.dev to .env

Build source

$ yarn build or npm run build

Start development

$ yarn dev or npm run dev

Start production

$ yarn prod or npm run prod

How to run via docker

$ docker build -f docker/Dockerfile -t react-ssr .
$ docker run -p 3000:3000 react-ssr