Skip to content

darx/magnet-api-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

magnet-api-proxy

Simple unofficial API which interfaces MagnetDl (more coming soon) & OMDb; deployable and tested using AWS Lambda.

Getting started

git clone https://github.com/darx/magnet-api-proxy.git
cd magnet-api-proxy
npm ci
(ehco PROXY_HOSTNAME= && ehco PROXY_USER_ID= && ehco PROXY_PASSWORD= && ehco OMDB_API= && echo OMDB_HOSTNAME= && ehco HOSTNAME_MAGNETDL= && ehco AWS_REGION= && ehco AWS_ACCESSKEYID= && ehco AWS_SECRETACCESSKEYID= && ehco AWS_S3_CACHE_BUCKET=) > .env

Working/Developing locally

npm run test:server

Bundle for AWS Lambda

Generates bundle.zip file in root directory of the project which is ready for deployment.

npm run bundle