Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 833 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 833 Bytes

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