I can officially say the v1 is done. Although I've tried my best to make it bugfree, but let me know if you see any issues.
I am calling it TPB Local, a JS app to access the TPB from your system locally, with different user experience than tpb.org. Of course, you need internet access to see torrent details and lists, but CORS has already been handled by the php script, so you don't need any additional browser plugins. (Realized later that team TPB provides one on their github repo, but I had already written it by then.)
Prerequisites
1. A local webserver (preferably apache, since I have already created an htaccess for necessary rewrites). You may go for any other, but make sure you have equivalent version of htaccess.
2. Node and npm (latest versions)
3. php (required for proxy): I have checked on v7, but should work on 5.6+
4. Internet obviously
How to:
1. In terminal, go to you local webserver root directory, and run following command:
Code:
git clone https://SKMi@bitbucket.org/SKMi/tpb.git
This will create a new directory called "tpb". If you are cloning in some other folder, make sure to change the "baseHref" in angular.json in project root.
2.
or whichever folder you used
3.
4.
Once the above 4 steps are complete successfully, open the latest version of your favorite browser and go to
http://localhost:4200. This should open the app.
5. (Optional): If you don't want to run the "npm start" script everytime you want to access the TPB Local, then you can also generate a build. Run the following command:
Code:
npm run build --prod
This will transpile the app inside a "dist" folder in the project root, with necessary files in it. Then you can go to
http://localhost/tpb (if tpb is your project root folder), and use the app. Assumption here is that you have apache server, with rewrite module enabled.