michaelcheng924 / react-redux-fullstack-starter

Starter Kit for React + Redux + Node/Express + Webpack + SASS + Babel/ES6
57 stars 23 forks source link

react-redux-fullstack-starter

  1. Getting Started
  2. Stack
  3. Features

Getting Started

Here's how you get started:

Requirements

Make sure you have node + npm installed. Preferably, use node v6.10.0, since that is the version used to write this starter.

Step 1: Get the Repository

git clone git@github.com:michaelcheng429/react-redux-fullstack-starter.git

Step 2: Install Dependences

npm i

You may also need to install some packages globally: npm i -g nodemon webpack webpack-dev-server

For better debugging, install Redux DevTools for Chrome here: https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=en

Step 3: Start the MongoDB daemon

This will involve installing MongoDB and then running mongod from the terminal.

Step 4: Start the webpack-dev-server to view the app and start developing

npm run dev

Then, go to localhost:8080 in your browser and start developing with live reload/react hot loading!

Note: For Windows, you will need to run webpack-dev-server and nodemon . in separate terminals.

Step 5: Deploy to Heroku

To easily deploy to Heroku, just follow these simple steps:

  1. Download the Heroku toolbelt and create a Heroku account
  2. Log in with heroku login
  3. git init
  4. Create App: heroku create (APPNAME)
  5. Set up MongoDBheroku addons:create mongolab
    heroku config:get MONGODB_URI
    heroku config:set MONGODB_URI=VALUE_FROM_LAST_STEP(COPY HERE)
  6. Build the files: npm run build
  7. Push to Herokugit push heroku master
  8. Go to APPNAME.herokuapp.com

Stack

This starter includes the following (among other smaller dependencies):

Features

Why use this starter/stack?