Posts

Showing posts with the label Open source

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 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 butt...

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 ...

DPS911 - Release 1

Image
About two weeks ago, I started a DPS911 Open Source Projects class, which is essentially a continuation of the previous DPS909 Topics in Open Source Development class that I took last year. The class size is much smaller, we have 4 students compared to the 30+ we had last time, which is nice the professor can spend more time with us as opposed to the entire 30+ class of students. For this class, we are starting a project that my professor has envisioned, for now we are calling it unbundled . This project is meant to recreate an operating system for web development in a browser environment. The idea is to have features such as accessing directory of files, a code editor, command line terminal, sharing files, and more, be available in the browser for use on any operating system. The project isn't re-inventing the wheel, the technology is already there, we are just putting everything together. Brackets , for example, will be used for the code editor, while webtorrent will be used f...

First bugs completed

Image
After working on my bugs for the past few weeks, I've finally completed two of my bugs! The bugs themselves were very simple to solve, but in this process, I've learned how to use a variety of different Git command, including clone, pull, add, fork, and pull request. I use to feel lost while using Git, now I'm much more confident with my new skills. Neither of my bugs were software-breaking bugs, and most users wouldn't even notice them. I finished my first bug in my previous blog, you can go and view it here . Deep inside of Firefox's Dev-tools, one button's boundaries extended to the end of the screen, instead of around the image only. The fix was relatively easy, a CSS class was already created and I only had to place the class name in the correct spot on the HTML page. I left the last blog after I completed the bug, without creating a Pull Request. During my previous lab, I practiced creating a Pull Request, so I had an idea on how to do it this time. I cr...

Rythm - making your page dance

Image
If you've ever wanted to add some life into your web pages, Rythm is a simple JavaScript library that will do just that. Rythm enables you to make each component on your page dance to your music. There is even a variety of dance moves to choose from. There is the pulse, The jump,       The twist,       The slide,      The fade        And finally the color change            Rythm is a great way of making a site more lively. Buttons, images, text, and more can be animated. The project was started earlier this year and is still getting updated today. It is written in both JavaScript and HTML More details including all demos can be found at https://okazari.github.io/Rythm.js/