当前位置: 动力学知识库 > 问答 > 编程问答 >

spring - building torrent provider website

问题描述:

Recently i have been given a project that is torrent provider just like torrentz.eu, thepiratebay etc, where anyone can search what they want to download and then get the download like with the help of torrent.

I don't know the concept behind this, what is the basic requirement and what is the process to make it done. i have searched over Google but didn't find any relevant answer related to my problem.

I just want to know the process and what i really need to do to make it done. technology i will use that is spring framework.

Thanks

网友答案:

This is not really an Spring specific question but I'll try to help you.

You just need to save the torrent file (a text file with information needed by torrent clients) in a database along with information about the torrent like a representative name, a date and not much more. You could do this using Spring Data JPA for example. This way you won't need SQL knoledges.

If you want a site like torrentz.eu, you will also need to fetch data about the torrent like peers. You can store this also in the database but you will have to update it periodically. To do this, there are APIs like Bitsnoop that return this kind of information.

Having this, you'll need only some controller mappings to show your home and to let users search torrents given a name (the one that your saved before).

分享给朋友:
您可能感兴趣的文章:
随机阅读: