Awesome Open Source
Awesome Open Source

React Redux Styled Hot Universal

React boilerplate, used best practices and focus on performance

Build Status Dependency Status devDependency Status


Live Demo 👀

About

The starter boilerplate includes the following technologies:

Technology Description
Node 10.15.1 LTS Node
Redux Dev Tools Redux Dev Tools
React Hot Loader 4 Tweak React components in real time
React 16 JavaScript library for building user interfaces
React Router 4 React Router is a complete routing library for React
Babel Babel is a JavaScript compiler
Webpack 4 Module bundler
Universal Webpack Helps setting up universal Webpack build: the one that's working both on client and server
Redux Redux is a predictable state container for JavaScript apps
React Router Redux Simple bindings to keep react-router and redux in sync
ESLint The pluggable linting utility for JavaScript and JSX

Installation

rm -rf node_modules
npm install

Create dev environment

mv .env.example .env

Running Dev Server

npm run dev

Create production environment

mv .env.production.example .env.production

Running Prod Server

npm run prod

Running Tests

npm run test

Deployment on Heroku

To get this project to work on Heroku, you need to:

  1. Add heroku heroku git:remote -a heroku-app-name
  2. heroku config:set NODE_ENV=production
  3. heroku config:set SSR=1
  4. heroku config:set SSL=1
  5. heroku config:set NPM_CONFIG_PRODUCTION=false
  6. heroku config:set NODE_MODULES_CACHE=false
  7. heroku config:set GOOGLE_ANALITICS_ID=UA-xxxxxxxxx-x (optional)

Docker

Run container

docker-compose up -d

Build an image

docker build -t wearepush/redux-starter .

Contributing

We are more than happy to accept external contributions to the project in the form of feedback, bug reports and even better - pull requests :) If you would like to submit a pull request, please make an effort to follow the guide in CONTRIBUTING.md.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (68,032) 
react (5,155) 
redux (1,150) 
express (472) 
jest (266) 
heroku (204) 
webpack4 (111) 
universal (107) 
isomorphic (104) 
css-modules (72) 
react-router-v4 (63) 
enzyme (41) 
redux-form (21) 

Find Open Source By Browsing 7,000 Topics Across 59 Categories

Advertising 📦 10
All Projects
Application Programming Interfaces 📦 124
Applications 📦 192
Artificial Intelligence 📦 78
Blockchain 📦 73
Build Tools 📦 113
Cloud Computing 📦 80
Code Quality 📦 28
Collaboration 📦 32
Command Line Interface 📦 49
Community 📦 83
Companies 📦 60
Compilers 📦 63
Computer Science 📦 80
Configuration Management 📦 42
Content Management 📦 175
Control Flow 📦 213
Data Formats 📦 78
Data Processing 📦 276
Data Storage 📦 135
Economics 📦 64
Frameworks 📦 215
Games 📦 129
Graphics 📦 110
Hardware 📦 152
Integrated Development Environments 📦 49
Learning Resources 📦 166
Legal 📦 29
Libraries 📦 129
Lists Of Projects 📦 22
Machine Learning 📦 347
Mapping 📦 64
Marketing 📦 15
Mathematics 📦 55
Media 📦 239
Messaging 📦 98
Networking 📦 315
Operating Systems 📦 89
Operations 📦 121
Package Managers 📦 55
Programming Languages 📦 245
Runtime Environments 📦 100
Science 📦 42
Security 📦 396
Social Media 📦 27
Software Architecture 📦 72
Software Development 📦 72
Software Performance 📦 58
Software Quality 📦 133
Text Editors 📦 49
Text Processing 📦 136
User Interface 📦 330
User Interface Components 📦 514
Version Control 📦 30
Virtualization 📦 71
Web Browsers 📦 42
Web Servers 📦 26
Web User Interface 📦 210