React Server Side Rendering with Express
Implementing Server Side Rendering (SSR)
using React
and Express
Getting Started
Development Environment & Run Server
Before you start server, you need to install dependencies in local
$ npm install
Run the commands to launch the dev
server:
$ docker-compose up
Production Enviroment & Run server
$ docker run --rm -it -p 3000:3000 react-express-ssr:latest
# or run with docker-compose
$ docker-compose -f docker-compose.prod.yml up
Reference
- React Server Side Rendering with Express
- React SSR | 從零開始實作 SSR — 基礎篇
- mattwang44/react-express-ssr-template : Serve frontend static build