Node 10.16.3
NPM 6.9.0
npm install
npm install nodemon -g
npm install ts-node -g
export DEBUG=PL:*
export DEBUG=PL:*
export SANDBOX='false'
export PORT=3007
export CRONE_JOB_ACTION='EXECUTE'
export API_URL=http://localhost:3007
export FRONT_END_URL=http://localhost:4200
export FFPROBE_PATH=./node_modules/ffmpeg-static/ffmpeg
export DOWNLOAD_AUDIO_CONCURRENCY=1;
export DOWNLOAD_VIDEO_CONCURRENCY=1;
export DOWNLOAD_ATTEMPT=5;
export LC_ALL=en_US.UTF-8
export GOOGLE_CLIENTid=YourClientId
export GOOGLE_CLIENT_SECRET=YourClientSecret
export DATABASE_URL=postgres://yourmongo/playit-dev
npm start
npm run build
npm run build
node dist/src/server.js
./node_modules/youtube-dl/bin/youtube-dl --version
export DOWNLOAD_AUDIO_SCHEDULE_ACTION='false'
export UPLOAD_AUDIO_SCHEDULE_ACTION='false'
export SYNC_TO_YOUTUBE_SCHEDULE_ACTION='false'
https://askubuntu.com/a/807918
- MongoDB
- Google OAuth App
- Heroku Account to Deploy your App
- Google Developer Console Access
- Create New App and Get The Client Id, Client Secret
- Set Redirect URL
${APP.API_URL}/api/v1/user/register/oauth/callback
- Google Drive API
- People API
- YouTube Data API v3
- Add User (Login as Google)
{{url}}/api/v1/user/register
- Add the Audio/Video Playlist
{{url}}/api/v1/playlist
- Remove Audio/Video Playlist
{{url}}/api/v1/playlist
https://www.getpostman.com/collections/de711239ba8581682a33