rbtv.ts.youtube
setup
to develop on your local machine you need:
- a redis-db to cache youtube-api-data
- a mongo-db to cache videos
- a youtube-key to access the data-api
note: both redis- and mongo-db can be completely empty. they're just needed for caching data.
installation
npm install
create env.js
in the project-root
const REDIS_URL = 'redis://user:pw@server:port';
const MONGOLAB_URI = 'mongodb://user:pw@server:port/path';
const YT_KEY = 'my_generic_youtube_key';
module.exports = {
REDIS_URL,
MONGOLAB_URI,
YT_KEY
};
these environment-variables will be set in production from heroku.
run
npm run dev
open http://localhost:5000/