Visualizations of common computer science search algorithms. Searches are shown using HTML5 canvas elements and logic is in JavaScript.
The visualizations can be seen here
ES6 modules are used to import/export code and most modern browsers now support this without the use of any bundling library. Since local development runs into CORS issues when trying to import from the file system, local files need to be served by a simple web server.
To start a web server using PHP:
$ npm run startThen open the app:
$ npm run serveWeb server one-liner credit and MANY more ways to start a webserver: willurd
There are currently no dependencies as this is written in vanilla js and avoids bundling. Testing is also web-based, and the browser loads the packages from unpkg as scripts.
Tests are run using Mocha as the test framework and Chai as the assertion library.
Web based test reports can be seen here
To run local tests: (remember to start the webserver first)
$ npm run test