This is the repo for the HR RPT10 FEC Project on the Twitch.TV Video Service. This repo renders the video player and video collection to the page.
- https://github.com/RPT10-TACO-TUESDAY/anna-chat-component
- https://github.com/RPT10-TACO-TUESDAY/george-categories-component
- https://github.com/RPT10-TACO-TUESDAY/milena-menu-bar-component
- https://github.com/RPT10-TACO-TUESDAY/faris-twitch-proxy
To get a better understanding of how you can create a video service module for Twitch.tv. This repo will render the first video in the sample collection to the DOM. The collection can also be accessed by adding '/videosAll' to the end of the path.
An nvmrc
file is included if using nvm.
- Node v11.6.0
From within the root directory:
-npm install
-npm run build
brew install postgresql
psql postgres
CREATE ROLE taco WITH LOGIN PASSWORD 'tuesday';
ALTER ROLE taco CREATEDB;
CREATE DATABASE twitchvid;
\c twitchvid
npm start
npm run seed
https://gist.github.com/Kartones/dd3ff5ec5ea238d4c546
-Go to dev.twitch.com and sign up for a new account -Locate your client-ID with the instructions provided on the website -Follow the API instructions for more info on how to obtain specific sets of data. Here is one example of obtaining data from a Twitch Streamer:
curl -H 'Client-ID: <ClientID Here>' \
-X GET 'https://api.twitch.tv/helix/videos?user_id=19070311&first=100'