This is an example of using trie data structure for prefix string search. It contains two separate projects; server-side using node.js, and client-side using AngularJS.
Code has been tested using
- node v8.7
- npm v5.5
- bower v1.8
- grunt-cli v1.2
you will need a file top-1m.csv in server folder for the app to import and index on startup. Then in server folder run the following commands:
$ npm install
$ npm start
In client folder run the following commands:
$ npm install
$ bower install
$ grunt serve