Skip to content

tom2kota/stream-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stream-client

Client of Video Stream React Redux App

DEMO on GitHub Pages

DEMO on Vercel


Status of ACTION script (Deployment):

React_App_Deploy_to_gh-pages_CI


Node.js & npm install

npm install npm -g
npm update
npm i axios react-redux redux redux-form redux-thunk react-router-dom 
npm audit fix

How To Install Node.js on Ubuntu 20.04

cd ~
curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
nano nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
node -v
curl -L https://www.npmjs.com/install.sh | sh
npm_config_prefix=/some/path sh install.sh
npm -v

node -v && npm -v

v14.2.0
6.14.4

Auth:

  1. new Google APIs project

  2. setup OAuth client

  3. import Google API library (public/index.html): <script src="https://apis.google.com/js/api.js" ></script>

  4. initialize Google API library (components/GoogleAuth.js):

    componentDidMount() {
        window.gapi.load('client:auth2', () => {
                window.gapi.client.init({
                        clientId: '***********-*****************************.apps.googleusercontent.com',
                        scope: 'email'
                    }
                )
            }
        )
    }

Redux DevTools

  1. documentation & repo

  2. Chrome Web Store & Mozilla Add-ons

  3. src/index.js

import {createStore, applyMiddleware, compose} from "redux";

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(
    reducers,
    composeEnhancers(applyMiddleware())
);
  1. Live demos to use the extension with:

  2. Create debug session & refresh the page:


references:

Samples / Authorizing and Making Authorized Requests

Methods and Classes / Google API Client LIbrary for Javascript

React Router Training

Redux Form Synchronous Validation Example

Deep Space House

Liquid Funk