/sorting-hat

A program to sort freshmen into houses

Primary LanguageJavaScript

Sorting Hat 2.0

Reworked for a frontend interface, frontend/json configuration, and reproducible/auditable results

Dev Setup

This repo uses webpack. The main entry file is index.html, and source js files are in /src.

The vue template is generated with vue-cli. For a detailed explanation on how things work, check out the guide and docs for vue-loader.

Sorting Algorithm

For Development

Run yarn install -D

To get webpack to automatically detect changes and rebuild the scripts, run yarn dev.

When you're done:

Run yarn build (This will automatically be in production mode due to webpack.config.js)

Push to your repository

Make a PR against https://github.com/yyc/sorting-hat

Build Setup

run unit tests

npm run unit

run all tests

npm test