Skip to content

training4developers/react_redux_09112017

Repository files navigation

Welcome to React & Redux with TypeScript

Instructor

Eric Greene - http://t4d.io - LinkedIn

Schedule

Class:

  • Monday - Thursday: 8:30am to 4:30pm

Breaks:

  • Morning: 10:15am to 10:30am
  • Lunch: Noon to 1pm
  • Afternoon: 2:45pm to 3:00pm

Course Outline

JavaScript topics will be included as needed into the React & Redux content

  • Day 1 - Overview of React, JSX, Props, State, Component Composition
  • Day 2 - Pure Component, Stateless Functions, Life Cycle Functions, Special Attributes
  • Day 3 - Unit Testing, React Router, Redux Reducers, Redux Stores, Connecting Redux to React
  • Day 4 - Asynchronous Programming, Redux Thunk

Online Course Portal

Click Here to Login: Course Login

  • Username: Email account name without the @ symbol and domain
  • Password: t4dpass (you will be prompted to change it on first login)

Links

Instructor's Resources

Other Resources

Overview

This project configuration bundles JavaScript files with Webpack transpiling TypeScript, ES2017 and JSX code to run in an ES5.1 environment.

Application Setup

Step 1. Install Node.js version 7 or higher. To install Node.js click here.

Step 2. Download this repository. Extract the zip file to a working folder on your system.

Step 3. Open a terminal window, change to the folder where you extracted the zip file. You should see a package.json file in the folder.

On Windows, the terminal is called "Node.js Command Prompt". This will command prompt will contain the proper paths for Node.js development. DO NOT RUN the Node.js program. Click the icon named "Node.js Command Prompt". For Mac users, the Mac terminal is all you need.

Step 4. From the terminal, run the following command:

npm i && npm start

It could take a few minutes for this command to complete. If you have connection issues due to a proxy server, please edit the .npmrc file per the instructions in those files. Then re-run the command above.

This setup has been completed successfully when you receive a message similar to this one:

] Child html-webpack-plugin for "../index.html":
[1]     chunk    {0} ../index.html 541 kB [rendered]
[1]         [0] ./~/html-webpack-plugin/lib/loader.js!./src/index.html 746 bytes {0} [built]
[1]         [1] ./~/lodash/lodash.js 540 kB {0} [built]
[1]         [2] (webpack)/buildin/module.js 251 bytes {0} [built]
[1] webpack: Compiled successfully.

This terminal window is now running the web server, a second terminal window will need to be opened to run additional terminal commands.

Step 5. If a web browser did not open automatically for you, then open a web browser, and navigate to http://localhost:3000. The React web application should load and be usable.

To Modify the Web Application

Step 6. Open your favorite text editor (Visual Studio Code (preferred)), and modify the files in the src folder. When file changes are saved, webpack will automatically transpile and bundle the application code and assets, and deploy it to the dist folder. To see the changes, reload your web browser.

Recommended Editor Packages/Extensions

For Visual Studio Code:

  • HTMLHint (kaufman.HTMLHint)
  • ESLint (dbaeumer.vscode-eslint)
  • markdownlint (DavidAnson.vscode-markdownlint)
  • TSLint (eg2.tslint)
  • SASS Lint (glen-84.sass-lint)
  • vscode-icons (robertohuertasm.vscode-icons)

Visual Studio Code has built-in support for React and a Terminal, no package needs to be installed

NPM Scripts Command Reference

From a terminal, in the root project folder (where the package.json file exists), the following commands can be executed to perform various project development tasks.

  • npm start - removes the dist folder, builds and deploys the web app, and starts the web app and the rest app
  • npm run clean - removes the dist folder
  • npm run web - starts the web server
  • npm run rest - starts the rest server
  • npm run build - runs webpack once to process web app files, and deploys them to the dist folder

Useful Resources

About

Class Files for React + Redux with TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published