#react-redux-fullstack-starter
Here's how you get started: Make sure you have node + npm installed. Preferably, use node v5.4.1, since that is the version used to write this starter.There are two ways to download the source code. Both ways will give you the same code.
git clone [email protected]:michaelcheng429/react-redux-fullstack-starter.git
npm install -g yo
npm install -g generator-react-redux-fullstack
- In your app's folder:
yo react-redux-fullstack
npm i
Using the yeoman generator should install the dependencies automatically.
npm run dev
Then, go to
localhost:8080
in your browser and start developing with live reload/react hot loading!
To easily deploy to Heroku, just follow these simple steps:
- Download the Heroku toolbelt and create a Heroku account
- Log in with
heroku login
git init
heroku create (APPNAME)
git push heroku master
- Go to
APPNAME.herokuapp.com
- React - Great framework for building scalable, performant web apps
- react-router - Routing library for React
- Redux - Great philosophy for managing data, data flow, and state with a single state tree
- Immutable - Prevents mutation of state. Always return brand new states when state updates.
- Webpack - Amazing module bundler that basically replaces Grunt and Gulp
- webpack-dev-server + react-hot-loader - Makes development a joy with easy testing and live reload
- Node + Express - Asynchronous JavaScript back-end. Node is fast, and Express makes writing Node easier and more fun.
- Mocha + Chai (testing) - Great testing framework and assertion library
- React + Redux is awesome - React and Redux go together beautifully. Uni-directional data flow. Have a single immutable state tree for your app, pass what you need into top level components, and then let these props trickle into lower level, "dumb" components. Know exactly where all data-manipulation happens, and prevent unintended side effects.
- Isomorphic - Server side rendering for improved load times and easy server-side routing
- Save hours of setting up the stack above to work together - One of the primary obstacles to using this great stack is how long it takes to get set up. Get all of the basics of this stack, without a ton of fancy junk you don't want.
- Comments and examples to help you learn and get started - There is some complexity to this stack. That's why there is so much information here about how to use this stack and this starter.
- Easy deployment to Heroku - Everything is set up for you to easily deploy your app to Heroku (or another place of your choice).