React serverside rendering boilerplate using express
MIT License
Server Side Rendering (only production mode) using express.
Clone this repository and then remove .git
directory.
$ git clone https://github.com/iamdew/react-express-boilerplate.git
$ cd react-express-boilerplate
$ rm -rf .git
Install yarn and pm2
$ npm install -g yarn pm2
Rename config file and then edit the file. (.env.example
to .env
)
PORT=4000
DEV_PORT=3000
SECRET_KEY="SECRET_KEY"
OG_TITLE=
OG_DESCRIPTION=
OG_IMAGE=
TITLE="React Express Boilerplate"
Run server
for development (using HMR)
$ yarn start:dev
for production (using pm2)
$ yarn start:prod
$ yarn stop
MIT License