Posts

Showing posts from August, 2018

DPS911 - Release 5

Jest and Puppeteer testing For my last release, I am attempting to use Jest and Puppeteer for testing my torrent sharing pages. Jest is a unit testing framework for ReacjtJS projects, and it is made by FaceBook. The PR can be found here . I am still learning Jest & Puppeteer and how it all works together. Currently, I am creating a tree of files before the torrent starts, then once the torrent is complete, I am testing again whether those files are created. This PR is still a work in progress, I am still working on it to fully complete it, and have jest run the torrent itself.

DPS911 - Release 4

Image
This is my fourth release for my Open Source class at Seneca College. With this release, I have multiple small bugs that I fixed, in addition to a build script that I built, and a react page for the sharing. There were two small bugs that I have fixed for the documentation that I have completed in my first release . Both were linking errors for the docusaurus pages. The first issue that I fixed, was #50 - Broken docs , and the second one was #105 - Fix docs siteConfig . All of the style sheets and images were missing for this issue. After a short investigation into the cause of this, I found out that all the resource files were linked incorrectly. The base url was set incorrectly to '/'  instead of the github pages url. After I fixed this, I cleaned up the code a little. I removed a few unnecessary headers, minified the svg file, removed users from the Docs, and cleaned up some code from the .gitignore file. The next issue that I fixed was when the resource files for

DPS911 - Release 3

Image
This is my third release for my Open Source class. This release is a progression on my the second release , where I used WebTorrent for sharing resource files. In the previous release, I created two different pages, one for importing files and one is exporting files. With this release, I joined the two files together, and added a few new features, such as number of peers, and download progression.    For testing purposes, we have a temporary main page for testing things like the editor, the Linux terminal, or file editor. I've added the share link in there as well for easy access during testing.  The look of the page is elegant now, it looks professional compared to the previous iteration. It displays the progress of the download, remaining time, download speed, download progress, upload speed, number of peers, and the total time. Once the torrent is complete, a message pop ups on the bottom saying it is complete. To start the torrent, the Start Seed button needs t

DPS911 - Release 2

Image
This is my second release for the DPS911 - Open Source class. With this release, I created two pages for sharing resource files between users, one was for importing the files, and the other was for exporting. I am using Webtorrent streaming service for sharing the files. The pull request can be found here , while the issue is located here I did have some trouble with this release. Initially, I had the user selecting local files to share instead of resource files. The pages themselves are very simple, most of the work was done in the back-end. The import page only has an input field for the magnetURI, and a download button download all the files. The export page automatically starts the torrent when opened, sharing all of the resource files, and displaying the magnetURI. This release was simple, there's no extra features included such as number of seeders, progress, or number of files. All this will be included in the next release, which will include combining the pages into