This component uses sorting criteria to create and render lists of videos. The three basic sorting criteria are: Recent broadcasts, Recent highlights & uploads, and Popular clips. The lists that the component renders are 1-1 with the sorting criteria, i.e., there will be one list for each sorting criterion.
- https://github.com/RPT10-TACO-TUESDAY/anna-chat-component
- https://github.com/RPT10-TACO-TUESDAY/milena-menu-bar-component
- https://github.com/RPT10-TACO-TUESDAY/faris-video-service
- https://github.com/RPT10-TACO-TUESDAY/
This component uses Webpack as its build process. If desired, this component can be rendered as a static page. To build a
bundle.js
that can be used as a static page, follow the instructions in the comments ofdatabase/gameSeedScript
,database/index
,server/server
, andclient/components/Categorized_Lists
. The bundle can be found inpublic
.
An nvmrc
file is included if using nvm.
- Node 8.9.4
From within the root directory:
npm install
In root directory, run the following:
- To generate 10M record CSV:
node --max-old-space-size=12000 database/genDataV2.js
- Then import in Mongo:
mongoimport --db categories_db --collection CategoriesModel --type csv --headerline --file database/clips.txt
npm start
then open up http://localhost:3000/