Skip to content

Latest commit

 

History

History
executable file
·
44 lines (25 loc) · 1003 Bytes

README.md

File metadata and controls

executable file
·
44 lines (25 loc) · 1003 Bytes

ExpressJS Boilerplate

ExpressJS boilerplate with SSR React SPA frontend. Includes Babel, Redux and React Router.

Usage:

  1. Install NodeJS:

It is recommended to install NodeJS with a native installer via NodeJS.org website.

If you prefer using Homebrew (brew install node), it will break your NPM installation. Here's a fix.

  1. Install dependencies:

npm install

  1. Start server:

npm start

and navigate your browser to http://localhost:3000/

  1. ???

  2. PROFIT

Production mode:

npm run production

Supported environment variables:

NODE_ENV(string): environment to use, like 'production'
PORT(int): port to bind to
SANDBOX(bool): run in sandboxed mode - useful for running fake production environment

Read through source for more information.

License

MIT © Max Degterev