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.
- 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
- React Context API
- API config
Clone and install the dependencies
$ git clone https://github.com/mstrluke/react-ssr.git
$ cd react-ssr
$ yarn install
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
$ docker build -f docker/Dockerfile -t react-ssr .
$ docker run -p 3000:3000 react-ssr