• This repository has been archived on 17/Jun/2019
  • Stars
    star
    1,285
  • Rank 36,401 (Top 0.8 %)
  • Language
    JavaScript
  • Created over 8 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Completed Dev Environment for "Building Applications with React and Redux" on Pluralsight

NOTE: This repo is archived.

This repo contains code from the previous version of Building Applications in React and Redux in ES6. For the latest code, see the exercise files on the course page on Pluralsight.

Starter Kit for Building Applications in React and Redux in ES6 on Pluralsight

Get Started

  1. Install Node 6. Need to run multiple versions of Node? Use nvm or nvm-windows
  2. Clone this repository. - git clone https://github.com/coryhouse/pluralsight-redux-starter.git or download the zip
  3. Make sure you're in the directory you just created. - cd pluralsight-redux-starter
  4. Install Node Packages. - npm install
  5. Run the app. - npm start -s This will run the automated build process, start up a webserver, and open the application in your default browser. When doing development with this kit, this command will continue watching files all your files. Every time you hit save the code is rebuilt, linting runs, and tests run automatically. Note: The -s flag is optional. It enables silent mode which suppresses unnecessary messages during the build.
  6. Disable safe write in your editor to assure hot reloading works properly.
  7. Install React developer tools and Redux Dev Tools in Chrome.
  8. Having issues? See below.

Having Issues? Try these things first:

  1. Run npm install - If you forget to do this, you'll see this: babel-node: command not found.
  2. Make sure the path doesn't include any spaces, or install the latest version of eslint-watch which adds support for paths containing spaces: npm install [email protected]
  3. Make sure you're running the latest version of Node. Or, use Node 5.12.0 if you're having issues on Windows. Node 6 has issues on some Windows machines.
  4. Make sure files with names that begin with a dot (.babelrc, .editorconfig, .eslintrc) are copied to the project directory root. This is easy to overlook if you copy this repository manually.
  5. Don't run the project from a symbolic link. It will cause issues with file watches.
  6. Use path.resolve on all path references in both the dev and prod webpack.config. See this commit for an example.
  7. Delete any .eslintrc in your user directory and disable any ESLint plugin / custom rules within your editor since these will conflict with the ESLint rules defined in the course.
  8. On Windows? Open your console as an administrator. This will assure the console has the necessary rights to perform installs.
  9. Try using your OS's native command line instead of an editor's. For some people, an editor's command line configuration may cause issues.
  10. Ensure you do not have NODE_ENV=production in your env variables as it will not install the devDependencies. To check run this on the command line: set NODE_ENV. If it comes back as production, you need to clear this env variable.
  11. Make sure you're using the same imports as the course demo. I've seen some people import ES6 code from node_modules via different imports like import Route from "react-router/es6/Route"; and import IndexRoute from "react-router/es6/IndexRoute";. Don't do that. :) Use the exact imports I use in the course.
  12. Reference bundle.js with a leading slash or you'll get an unexpected token error on reload of deep links.
  13. Make sure you have a .babelrc file defined in the root, as provided in this repo. Without it, you'll get a Unexpected token import error.
  14. Nothing above work? Delete your node_modules folder and re-run npm install.

Production Dependencies

Dependency Use
babel-polyfill Polyfill for Babel features that cannot be transpiled
bootstrap CSS Framework
jquery Only used to support toastr
react React library
react-dom React library for DOM rendering
react-redux Redux library for connecting React components to Redux
react-router React library for routing
react-router-redux Keep React Router in sync with Redux application state
redux Library for unidirectional data flows
redux-thunk Async redux library
toastr Display messages to the user

Development Dependencies

Dependency Use
babel-cli Babel Command line interface
babel-core Babel Core for transpiling the new JavaScript to old
babel-loader Adds Babel support to Webpack
babel-plugin-react-display-name Add displayName to React.createClass calls
babel-preset-es2015 Babel preset for ES2015
babel-preset-react Add JSX support to Babel
babel-preset-react-hmre Hot reloading preset for Babel
babel-register Register Babel to transpile our Mocha tests
cheerio Supports querying DOM with jQuery like syntax - Useful in testing and build process for HTML manipulation
colors Adds color support to terminal
compression Add gzip support to Express
cross-env Cross-environment friendly way to handle environment variables
css-loader Add CSS support to Webpack
enzyme Simplified JavaScript Testing utilities for React
eslint Lints JavaScript
eslint-plugin-import Advanced linting of ES6 imports
eslint-plugin-react Adds additional React-related rules to ESLint
eslint-watch Add watch functionality to ESLint
eventsource-polyfill Polyfill to support hot reloading in IE
expect Assertion library for use with Mocha
express Serves development and production builds
extract-text-webpack-plugin Extracts CSS into separate file for production build
file-loader Adds file loading support to Webpack
jsdom In-memory DOM for testing
mocha JavaScript testing library
nock Mock HTTP requests for testing
npm-run-all Display results of multiple commands on single command line
open Open app in default browser
react-addons-test-utils Adds React TestUtils
redux-immutable-state-invariant Warn when Redux state is mutated
redux-mock-store Mock Redux store for testing
rimraf Delete files
style-loader Add Style support to Webpack
url-loader Add url loading support to Webpack
webpack Bundler with plugin system and integrated development server
webpack-dev-middleware Adds middleware support to webpack
webpack-hot-middleware Adds hot reloading to webpack

More Repositories

1

react-slingshot

React + Redux starter kit / boilerplate with Babel, hot reloading, testing, linting and a working example app built in
JavaScript
9,751
star
2

speaker-starter-kit

Resources for aspiring speakers
797
star
3

react-flux-starter-kit

Quickly get started with React and Flux using Browserify and Gulp
JavaScript
684
star
4

reactjsconsulting

React Related Resources
JavaScript
323
star
5

javascript-development-environment

JavaScript development environment discussed in "Building a JavaScript Development Environment" on Pluralsight
JavaScript
298
star
6

a11y

Repository on accessibility
HTML
281
star
7

timeless-skills

These are the timeless skills I wish I’d learned in school, and the resources I recommend to learn them.
273
star
8

ps-react

Reusable React components built in "Creating Reusable React Components" on Pluralsight
JavaScript
136
star
9

mock-api-example

Example Mock API for rapid development
JavaScript
122
star
10

graphql

Resources for learning GraphQL.
111
star
11

switchboard

Toolkit for creating custom DevTools for React projects
TypeScript
108
star
12

react-state-demo

This app showcases eight ways to handle React state.
JavaScript
76
star
13

7-pillar-developer

7 Pillar Developer Talk Repo
59
star
14

react-flux-building-applications

Final version of demo app for React and Flux course on Pluralsight
JavaScript
57
star
15

react-tour-of-heroes

Implementation of Angular 2's "Tour of Heroes" Tutorial in React
JavaScript
54
star
16

ama

Ask me anything.
40
star
17

dynamic-import-example

Showcase using ES dynamic imports in create-react-app
JavaScript
31
star
18

shell

Module Federation demo
TypeScript
30
star
19

devup-2017

Repository for "Build a JS Dev Environment in 1 Hour" at DevUp 2017
JavaScript
27
star
20

testing-react

Testing Demo App
JavaScript
21
star
21

get-started-in-programming

Resources for people just getting started in programming
19
star
22

outlierdeveloper

OutlierDeveloper.com
19
star
23

js-dev-env-demo

Course demo
JavaScript
17
star
24

react-auth0-final

The final app used to record the course
JavaScript
16
star
25

fluent2017

JavaScript Development Environment for Fluent 2017
JavaScript
15
star
26

js-dev-env-demo-api

API for JS Dev Env Demo in Pluralsight course
JavaScript
13
star
27

react-umd-example

Example of consuming a UMD React component
JavaScript
12
star
28

vite-project

A reference project for using Vite and Vitest with React
TypeScript
12
star
29

clean-coding-principles-c-sharp

Demo for "Clean Coding Principles in C#" on Pluralsight
C#
11
star
30

pluralsight-reusable-react-components

WIP for scripting demo
JavaScript
8
star
31

farfetch

8
star
32

mock-data-pattern

Example of centralized mock data pattern for React apps
JavaScript
8
star
33

pro-javascript-bootcamp

Pro JavaScript Bootcamp
JavaScript
7
star
34

angular-2-tour-of-heroes

Implementation of Angular 2's "Tour of Heroes" Tutorial
JavaScript
7
star
35

pluralsight-reusable-components-cra

Building reusable components with create-react-app as foundation
JavaScript
7
star
36

fluent2016

"React and Flux from Scratch" - Tutorial for Fluent 2016 in San Francisco
JavaScript
6
star
37

isomorphic-demos

List of Isomorphic Demos I've found across the web
6
star
38

react-typescript-starter-kit

Simple starter kit that shows how TypeScript and React can work together
JavaScript
6
star
39

CleanCodePresentation

Clean Code Presentation Example Application
JavaScript
6
star
40

typescript-react

Kicking the tires on TypeScript with React
TypeScript
6
star
41

fluent2016complete

The completed Fluent2016 Demo at https://github.com/coryhouse/fluent2016
JavaScript
6
star
42

create-react-library

Create a React component library project via a configurable command line
5
star
43

skillpath-react

React training at Skillpath
JavaScript
5
star
44

react-state-managing

Repo for Managing React State on Pluralsight
JavaScript
5
star
45

everlaw-shoes

TypeScript
5
star
46

pluralsight-clean-code-demo

C#
5
star
47

js-async-patterns

Examples of Async patterns in JS
JavaScript
5
star
48

acutrack-react

JavaScript
5
star
49

my-component

React component created by nwb
JavaScript
4
star
50

js-blurb

Short blurb on JS
4
star
51

mobx

MobX Demo
JavaScript
3
star
52

repo-template

A repo template with the key pieces included
3
star
53

react-flux

JavaScript
3
star
54

americo-react

TypeScript
3
star
55

taxslayer

JavaScript
2
star
56

vite-pwa-app

Vite app using vite-pwa plugin to notify upon deployment
MDX
2
star
57

nextjs-13-demo

TypeScript
2
star
58

paycor

JavaScript
2
star
59

vercel-pluralsight-demo

Demo of hosting Next.js on Vercel
JavaScript
2
star
60

charleston-digital-hub

Course management app
JavaScript
2
star
61

eboss

JavaScript
2
star
62

malle-sept

JavaScript
2
star
63

html5-web-components

Repo for HTML5 Web Component Fundamentals on Pluralsight
2
star
64

xstate-demo

Xstate with React demo
TypeScript
2
star
65

DependencyInjectionExample

Dependency Injection example
JavaScript
2
star
66

athena-watertown

React app
JavaScript
2
star
67

managing-react-state-kcdc-2021

Demo code for "Managing React State: 7 Years of Lessons Learned" at KCDC 2021
JavaScript
2
star
68

react-state-options

Contrast React state options
2
star
69

react-rendering-service

Returns HTML of React component via webservice
JavaScript
2
star
70

trpc-demo

TypeScript
2
star
71

remix-jokes

Remix jokes tutorial
TypeScript
2
star
72

advanced-react-starter

Starter project for advanced React
JavaScript
2
star
73

babel-node

Shows how babel-node throws an error when you hit ctrl+c instead of exiting clean
JavaScript
2
star
74

shell-monorepo-poc

TypeScript
2
star
75

fds-theming

TypeScript
2
star
76

kcdc24

2
star
77

swa-react

JavaScript
1
star
78

percy-demo

Demo of using Percy for automated image-based testing
JavaScript
1
star
79

kcdc2019-react

React Precompiler
JavaScript
1
star
80

react-monorepo

A monorepo supporting multiple teams contributing separate pieces of a large React app
1
star
81

oclc-react-restaurant

TypeScript
1
star
82

e-gineering

React workshop for e-gineering
TypeScript
1
star
83

storybook-css-bug

JavaScript
1
star
84

akin-gump

JavaScript
1
star
85

ps-dev-env-script

Use to create script from ground up
JavaScript
1
star
86

slingshot-fork

JavaScript
1
star
87

everkicks

Shoe store for Everlaw React training
JavaScript
1
star
88

reactjsconsulting.com

reactjsconsulting.com Source Code
JavaScript
1
star
89

remote-2

Shell tech demo remote app 2
TypeScript
1
star
90

tideworks

JavaScript
1
star
91

react-via-cdn

Simple example of using React via a CDN
HTML
1
star
92

crap-okta-from-scratch

Connect create-react-app app to OKTA from scratch
JavaScript
1
star
93

Helmes

React and JavaScript consulting
JavaScript
1
star
94

hallmark

eCards App
JavaScript
1
star
95

next-trpc-demo

Demo of using tRPC with Next.js
TypeScript
1
star
96

kiewit-react

JavaScript
1
star
97

oberhaching-react

Library app
TypeScript
1
star
98

react-restaurant-assets

Assets for a restaurant app built in React
TypeScript
1
star
99

magellan

JavaScript
1
star
100

conf-app-connecttech-2021

TypeScript
1
star