A Node.js server to which user can upload torrent files and download them to google drive. Basic principle behind working is similar to sarangnx/google-drive-download.
# copy example and set environment variables
cp .env.example .env
# install dependencies
yarn
# start server with nodemon
yarn dev
Before you can run the app server, you need to set some variables.
Google OAuth
Goto Google Developer Console
and obtain CLIENT_ID
and CLIENT_SECRET
.
Set REDIRECT_URL
= http://host/auth/callback
Port
set any number other than well-known ports when using locally. When deploying to heroku, you cannot use custom ports. Heroku sets PORT
variable by itself.
# THESE ARE THE REQUIRED ENV VARS
NODE_ENV=development
# GOOGLE OAUTH
CLIENT_ID=xxx.apps.googleusercontent.com
CLIENT_SECRET=clientsecret
REDIRECT_URL=http://lvh.me:3000/auth/callback
# PORT
PORT=3000
# BASEURL OF WEB APP
WEBAPP_URI=http://localhost:8080