This is the backend for torrentflix
It gives you a GraphQL API to search for movies and shows as well as getting torrent files for a given IMDbID.
It also have an endpoint that gives you an url to cast a torrent and it respective subtitle.
Once you clone this repo and install it's dependencies, create a .env
file with the OMDB_API_KEY
(you can get your key here) and the POPCORN_API_URL
(you can use the one in the .envexample
).
Then run yarn start
and you should be good to go.
You will only be able to run the frontend in the same machine where the server is running. If you want to cast from your phone or other machines, you will need to use something like ngrok.