Giter Club home page Giter Club logo

torrent2gdrive's Introduction

original

Torrent2Drive

A web application to download torrent directly to your Google Drive using Nodejs in backend and Vuejs in frontend.

Features

  • Download Torrent and Upload to Google Drive.
  • Supports Shared google drive.
  • Upload the torrent by zipping.

Installation

Deploy to Local Machine

  • Clone this repo to your local machine using https://github.com/pawanpaudel93/Torrent2GDrive

  • Goto Google Developer Console and create OAuth credentials.

  • Goto Torrent2Drive/Torrent2Drive_server folder and create .env file and view file .env-example for reference and paste the following with OAuth credentials in .env file.

    GOOGLE_CLIENT_ID=paste client id here

    GOOGLE_CLIENT_SECRET=paste client secret here

    SECRET=Torrent2Drive@VueJS

  • Goto Torrent2Drive/Torrent2Drive_frontend folder and create .env file and view file .env-example for reference and paste in .env file

    VUE_APP_BASEURL=http://localhost:3000

  • Goto Torrent2Drive folder and open terminal and write the following command for the project setup: (Make sure npm is installed!)

    npm run local-build
  • Then to run the app write write:

    npm run start
  • So if you update the app code and to build and start the app write:

  npm run build
  npm run start

Deploy to Heroku

โš ๏ธ DON'T DEPLOY HEROKU NOW. DEPLOYING OF THIS APP MAY SUSPEND YOUR ACCOUNT.

  • Goto Google Developer Console and create OAuth credentials.

  • Deploy to Heroku

    Deploy

  • For SECRET paste value Torrent2Drive@VueJS or any custom text. and use OAUTH secret and client ID.

    GOOGLE_CLIENT_ID

    GOOGLE_CLIENT_SECRET

  • Set heroku VUE_APP_BASEURL environment variable to your heroku app URL. I have used https://t0rr3nt2gd.herokuapp.com. So, use your own heroku URL which is appName.herokuapp.com where appName is your App name.

torrent2gdrive's People

Contributors

dependabot[bot] avatar pawanpaudel93 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

torrent2gdrive's Issues

Hey Can You Help Me Please Deploying To Heroku

Earlier it was working on heroku but now its not working anymore can u look into the logs and tell me if, i am doing something wrong or heroku has banned the app

----> Node.js app detected

-----> Creating runtime environment

   NPM_CONFIG_LOGLEVEL=error
   NODE_ENV=production
   NODE_MODULES_CACHE=true
   NODE_VERBOSE=false

-----> Installing binaries
engines.node (package.json): >= 4.0.0
engines.npm (package.json): unspecified (use default)

   Resolving node version >= 4.0.0...
   Downloading and installing node 14.1.0...
   Using default npm version: 6.14.4

-----> Installing dependencies
Installing node modules (package.json + package-lock)
up to date in 0.56s
found 0 vulnerabilities

-----> Build
Detected both "build" and "heroku-postbuild" scripts
Running heroku-postbuild

   > [email protected] heroku-postbuild /tmp/build_2946b26beee410cc9345a565ab179014
   > npm run build-client && npm run install-server
   
   
   > [email protected] build-client /tmp/build_2946b26beee410cc9345a565ab179014
   > cd ./Torrent2Drive_frontend && npm install && npm run build
   
   
   > [email protected] postinstall /tmp/build_2946b26beee410cc9345a565ab179014/Torrent2Drive_frontend/node_modules/babel-runtime/node_modules/core-js
   > node -e "try{require('./postinstall')}catch(e){}"
   
   
   > [email protected] postinstall /tmp/build_2946b26beee410cc9345a565ab179014/Torrent2Drive_frontend/node_modules/core-js
   > node -e "try{require('./postinstall')}catch(e){}"
   
   
   > [email protected] postinstall /tmp/build_2946b26beee410cc9345a565ab179014/Torrent2Drive_frontend/node_modules/ejs
   > node ./postinstall.js
   
   added 1292 packages from 888 contributors and audited 25651 packages in 40.848s
   
   40 packages are looking for funding
     run `npm fund` for details
   
   found 1 low severity vulnerability
     run `npm audit fix` to fix them, or `npm audit` for details
   
   > [email protected] build /tmp/build_2946b26beee410cc9345a565ab179014/Torrent2Drive_frontend
   > vue-cli-service build
  • Building for production...
    DONE Compiled successfully in 10607ms4:31:37 PM

      File                                      Size             Gzipped
    
      dist/js/chunk-vendors.b7ac246e.js         182.67 KiB       61.43 KiB
      dist/js/app.77468d49.js                   13.36 KiB        4.48 KiB
      dist/service-worker.js                    1.05 KiB         0.62 KiB
      dist/precache-manifest.4511edeb77f2557    0.68 KiB         0.33 KiB
      dd44cfc745dbdf18c.js
      dist/css/app.a867a73b.css                 2.50 KiB         0.73 KiB
    
      Images and other types of assets omitted.
    
     DONE  Build complete. The dist directory is ready to be deployed.
     INFO  Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html
          
    
    > [email protected] install-server /tmp/build_2946b26beee410cc9345a565ab179014
    > cd ./Torrent2Drive_server && npm install
    
    
    > [email protected] install /tmp/build_2946b26beee410cc9345a565ab179014/Torrent2Drive_server/node_modules/bufferutil
    > node-gyp-build
    
    
    > [email protected] install /tmp/build_2946b26beee410cc9345a565ab179014/Torrent2Drive_server/node_modules/utf-8-validate
    > node-gyp-build
    
    
    > [email protected] install /tmp/build_2946b26beee410cc9345a565ab179014/Torrent2Drive_server/node_modules/wrtc
    > node scripts/download-prebuilt.js
    

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: bad download
node-pre-gyp ERR! stack at Unpack.afterTarball (/tmp/build_2946b26beee410cc9345a565ab179014/Torrent2Drive_server/node_modules/node-pre-gyp/lib/install.js:100:46)
node-pre-gyp ERR! stack at Unpack.emit (events.js:315:20)
node-pre-gyp ERR! stack at Unpack.[maybeClose] (/tmp/build_2946b26beee410cc9345a565ab179014/Torrent2Drive_server/node_modules/tar/lib/unpack.js:171:12)
node-pre-gyp ERR! stack at Unpack.[unpend] (/tmp/build_2946b26beee410cc9345a565ab179014/Torrent2Drive_server/node_modules/tar/lib/unpack.js:394:21)
node-pre-gyp ERR! stack at /tmp/build_2946b26beee410cc9345a565ab179014/Torrent2Drive_server/node_modules/tar/lib/unpack.js:308:46
node-pre-gyp ERR! stack at FSReqCallback.oncomplete (fs.js:163:23)
node-pre-gyp ERR! System Linux 4.4.0-1062-aws
node-pre-gyp ERR! command "/tmp/build_2946b26beee410cc9345a565ab179014/.heroku/node/bin/node" "/tmp/build_2946b26beee410cc9345a565ab179014/Torrent2Drive_server/node_modules/.bin/node-pre-gyp" "install"
node-pre-gyp ERR! cwd /tmp/build_2946b26beee410cc9345a565ab179014/Torrent2Drive_server/node_modules/wrtc
node-pre-gyp ERR! node -v v14.1.0
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
bad download
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node scripts/download-prebuilt.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.KSrHy/_logs/2020-05-03T16_31_52_483Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install-server: cd ./Torrent2Drive_server && npm install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install-server script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.KSrHy/_logs/2020-05-03T16_31_52_515Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] heroku-postbuild: npm run build-client && npm run install-server
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] heroku-postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.KSrHy/_logs/2020-05-03T16_31_52_531Z-debug.log
-----> Build failed

   We're sorry this build is failing! You can troubleshoot common issues here:
   https://devcenter.heroku.com/articles/troubleshooting-node-deploys
   
   Some possible problems:
   
   - Dangerous semver range (>) in engines.node
     https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
   
   Love,
   Heroku

! Push rejected, failed to compile Node.js app.
! Push failed
Build finished

deploy-able in shared hosting ?

Deploying this on heroku will eventually lead to account suspension if abused.
So
I am trying to deploy this on my shared hosting service
Is this tool deploy-able in shared hosting ?

if yes this I am facing an issue while running npm run local-build

0 info it worked if it ends with ok
1 verbose cli [ '/opt/alt/alt-nodejs10/root/usr/bin/node',
1 verbose cli   '/opt/alt/alt-nodejs10/root/usr/bin/npm',
1 verbose cli   'run',
1 verbose cli   'local-build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prelocal-build', 'local-build', 'postlocal-build' ]
5 info lifecycle [email protected]~prelocal-build: [email protected]
6 info lifecycle [email protected]~local-build: [email protected]
7 warn lifecycle The node binary used for scripts is /home/example/nodevenv/github/Torrent2GDrive/10/bin/node but npm is using /opt/alt/alt-nodejs10/root/usr/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
8 verbose lifecycle [email protected]~local-build: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~local-build: PATH: /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/npm-lifecycle/node-gyp-bin:/home/example/github/Torrent2GDrive/node_modules/.bin:/home/example/nodevenv/github/Torrent2GDrive/10/bin:/opt/alt/alt-nodejs10/root/usr/bin:/home/example/nodevenv/github/Torrent2GDrive/10/lib/bin/:/home/example/perl5/bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/jdk/bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin:/opt/cpanel/composer/bin:/usr/local/bin:/usr/X11R6/bin:/opt/lua/bin:/opt/puppetlabs/bin:/home/example/bin
10 verbose lifecycle [email protected]~local-build: CWD: /home/example/github/Torrent2GDrive
11 silly lifecycle [email protected]~local-build: Args: [ '-c',
11 silly lifecycle   'npm run build-client && npm run install-server && cd ./Torrent2Drive_server' ]
12 silly lifecycle [email protected]~local-build: Returned: code: 134  signal: null
13 info lifecycle [email protected]~local-build: Failed to exec local-build script
14 verbose stack Error: [email protected] local-build: `npm run build-client && npm run install-server && cd ./Torrent2Drive_server`
14 verbose stack Exit status 134
14 verbose stack     at EventEmitter.<anonymous> (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/npm-lifecycle/index.js:332:16)
14 verbose stack     at EventEmitter.emit (events.js:198:13)
14 verbose stack     at ChildProcess.<anonymous> (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/npm-lifecycle/lib/spawn.js:55:14)
14 verbose stack     at ChildProcess.emit (events.js:198:13)
14 verbose stack     at maybeClose (internal/child_process.js:982:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
15 verbose pkgid [email protected]
16 verbose cwd /home/example/github/Torrent2GDrive
17 verbose Linux 2.6.32-954.3.5.lve1.4.78.el6.x86_64
18 verbose argv "/opt/alt/alt-nodejs10/root/usr/bin/node" "/opt/alt/alt-nodejs10/root/usr/bin/npm" "run" "local-build"
19 verbose node v10.22.0
20 verbose npm  v6.14.6
21 error code ELIFECYCLE
22 error errno 134
23 error [email protected] local-build: `npm run build-client && npm run install-server && cd ./Torrent2Drive_server`
23 error Exit status 134
24 error Failed at the [email protected] local-build script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 134, true ]

Error Deploying

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]
6 info lifecycle [email protected]
start: [email protected]
7 verbose lifecycle [email protected]start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
start: PATH: /usr/share/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/Torre>9 verbose lifecycle [email protected]start: CWD: /root/Torrent2GDrive
10 silly lifecycle [email protected]
start: Args: [ '-c', 'cd Torrent2Drive_server && node server.js' ]
11 silly lifecycle [email protected]start: Returned: code: 1 signal: null
12 info lifecycle [email protected]
start: Failed to exec start script
13 verbose stack Error: [email protected] start: cd Torrent2Drive_server && node server.js
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/share/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess. (/usr/share/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid [email protected]
15 verbose cwd /root/Torrent2GDrive
16 verbose Linux 5.8.0-41-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "start"
18 verbose node v12.18.2
19 verbose npm v6.14.8
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: cd Torrent2Drive_server && node server.js
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Unable to authenticate google drive account

I have set up everything and deployed the app on my heroku account, but I am not able to authenticate my google drive. Should I change heroku config vars ? Please help.

i already put GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET in config vars..the problem lyes on redirect uri..how to change that ?

Asking for Google Drive Authentication again & again. what should i have to change ?

and what is SECRET & TOKEN_SECRET config vars ?

error

cannot find webtorrent-hybrid

does it use aria2?

hi..
thanks for this awesome project..

i want to know what does it use to download and transfer to gdrive?
can we change peer-id and user-agent values?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.