Skip to content

mgarbacz/nordrassil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nordrassil Build & TestCoverage Status

Nordrassil, the Word Trie - a trie data structure implemented in vanilla JavaScript

Demo: Nordrassil, the Word Trie

Build locally

Install dependencies with:

npm install

This app uses the Vite build tool with a non-default config. The source resides inside the app directory and is built by Vite into the dist directory. You can serve the content in dist using your preferred web server.

To initiate a build:

npm run build

Development

Vite can also watch the app directory for file changes, and serve the content without needing to run a build. This is the best way to develop, as it will not require source maps and will auto reload the browser tab you are viewing from.

To initiate dev mode and serve the content on http://localhost:5173:

npm run dev

Or, to have Vite watch for changes and serve the complete production build on http://localhost:4173:

npm run serve

Or, to do the same watching for changes and the production build, but serve dist from your preferred web server instead:

npm run watch

Test suite

Run test cases with:

npm test

This will run the tests in test using Mocha. Code coverage reports are also set up with c8.

To get a code coverage report with the tests:

npm run coverage

License

See LICENSE file included in this distribution.

About

Nordrassil, the Word Trie

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published