Skip to content

Boilerplate react and redux app for setting up new projects.

Notifications You must be signed in to change notification settings

mikemerritt/react-redux-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React-Redux-Starter

Setting up a new project can be a pain. This is a boilerplate react and redux app for setting up new projects.

Usage

It's very simple to get up and running. Simply clone this repo and npm/yarn install. I set this up using Yarn so I will refer to that when talking about commands. Use the NPM version of commands if that is your preferred package manager.

I usually work in a Rails/React tech stack so by default it's configured for use with it's sister repo https://github.com/mikemerritt/rails-api-starter, which means that it expects a JSON API to be located at localhost:3000.

As for production, this app doesn't make any assumptions and therefore does not have production config. I will leave that up to you. Since this compiles into static files there are a multitude of options for a production environment. It can be deployed as a static website on Amazon S3/Cloudfront or serve it with a traditional web server. It's up to you.

Building

Running yarn build will build the bundle and output it to public/dist.

Dev Server

Running yarn start will start the webpack-dev-server on port 3500 with hot-module-replacement.

Testing

Running yarn test will run any tests you have. By default it's configured to use Jest but can easily be swapped out for something else. yarn snapshot will run your test suite and rebuild snapshots.

TODO

This currently does not have a solution for styling components. For now you'll need to implement your own solution.

About

Boilerplate react and redux app for setting up new projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published