Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/michalzalecki/react-redux-universal-boilerplate

Setup for universal React apps. Working with Heroku/Dokku out of the box.
https://github.com/michalzalecki/react-redux-universal-boilerplate

Last synced: 28 days ago
JSON representation

Setup for universal React apps. Working with Heroku/Dokku out of the box.

Awesome Lists containing this project

README

        

# react-redux-universal-boilerplate

Setup for universal React apps. Working with Heroku/Dokku out of the box.

## Batteries Included

* **Webpack 2** (dev and production configs)
* **Webpack Dashboard**
* **React Hot Loader 3**
* **React Router 3**
* **Redux**
* **Server-Side Rendering**
* **ESLint** (Airbnb config)

## What's not included

Choose according to your preference

* Side effects middleware for Redux
* Testing framework
* CSS preprocesor

## Installation

```
cp .env-example .env
npm install
```

## Usage

Start **express** (serving files in production).

```bash
npm start
```

Start **express with webpack-dev-middleware** (in development).

```bash
npm run start:dev
```

You can specify `PORT` for both: development and production server (default to `8080`).

```
PORT=5000 npm start
PORT=8081 npm run start:dev
```

Start **express with webpack-dev-middleware and webpack-dashboard**.

```bash
npm run start:dashboard
```

Build (also run in `postinstall`). Make sure you are creating React bundle in `production`
environment by setting NODE_ENV or editing `.env` file.

```bash
npm run build
```

Run linter for `.js` and `.jsx` in `src`.

```bash
npm run lint
```