Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/michalzalecki/react-redux-universal-boilerplate
- Owner: MichalZalecki
- Created: 2016-11-26T01:16:44.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-24T11:22:27.000Z (about 8 years ago)
- Last Synced: 2024-10-25T12:38:05.919Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```