ExpressJS boilerplate with SSR React SPA frontend. Includes Babel, Redux and React Router.
- 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.
- Install dependencies:
npm install
- Start server:
npm start
and navigate your browser to http://localhost:3000/
-
???
-
PROFIT
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.