Skip to content

8888/searchVisualizations

Repository files navigation

Search Visualizations

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

Local Development

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 start

Then open the app:

$ npm run serve

Web 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

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

About

Visualizations of common computer science search algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published