react-express-boilerplate

1.0.3 • Public • Published

react-express-boilerplate

Server Side Rendering (only production mode) using express.

Getting started

Prerequisites

  • Node.js ^6.x
  • npm ^3.x
  • yarn ^0.x
  • pm2 ^2.x

Usage

  1. 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
    
  2. Install yarn and pm2

    $ npm install -g yarn pm2
    
  3. 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"
    
  4. Run server

    for development (using HMR)
      $ yarn start:dev
    for production (using pm2)
      $ yarn start:prod
      $ yarn stop
    

License

MIT License

Dependents (0)

Package Sidebar

Install

npm i react-express-boilerplate

Weekly Downloads

4

Version

1.0.3

License

MIT

Last publish

Collaborators

  • iamdew