Overview
Our project aims to provide a hybrid solution for file distribution. In the "index.php" or "download.php," you have the core of the application, where the user inputs a link or URL to download the file to the central server and store its information in a MySQL database, such as name, date, SHA-256 hash, URL, etc. The 'p2p_c.go' and 'p2p_s.go' are the client and server of a P2P application, respectively, where the user uploads their files to a list of servers and downloads all files from these servers. In other words, you can use the PHP application independently of Golang and vice versa, although you can use PHP to index and search the files hosted on Golang servers.
File storage conventions
All files are saved in the 'files' directory using SHA-256 hashes for file names (with dot and the original file extension), regardless of how they are distributed. Additional information, such as the original file name or its display, is entirely up to the user, and we do not provide a specific standard.
File distribution conventions
Each server should store only the files of a specific category that the user would potentially be willing to download in full. Conversely, the user should maintain or keep files only from one category before uploading or downloading them from other servers.
Contact
For questions and suggestions, please contact 2nodesw@gmail.com. All rights reserved.