didierfranc / redux-react-starter

DEPRECATED use the new https://github.com/didierfranc/react-webpack-4
MIT License
134 stars 35 forks source link
boilerplate components eslint javascript jsx preact react redux styled virtual-dom webpack

styled with prettier

Live

redux-react-starter

This repository contains the minimal app to get started with redux, react, hot-reloading, async function and some other great stuffs.

How to

yarn 0.18+ must be present on your machine.

Start

Run webpack-dev-server, get ready to code with hot reloading

yarn start

Share

Share your localhost running app to anyone with an internet connection

yarn ngrok

Build

Bundle your app. It will create index.html, main.[hash].js, vendor.[hash].js and manifest.[hash].js

yarn build

Run your build

yarn prod

Deploy

Surge.sh

surge ./dist -d subdomain.surge.sh

Github Pages

mv dist docs
git push upstream master

Then go to your repository, Settings -> Options -> Github Pages and select /docs folder

What's inside ?

👉 package.json

Tools

If you have not already done so, move to Chrome and install react-developer-tools & redux-devtools

Create-React-App

If you don't care about the process or you don't want to play with your config try create-react-app