This is my first project using Node.js where I created a search engine which works on problems of codechef and codeforces and when entered a query it returns most relavant results.
https://algodsgo.herokuapp.com/
Most Important! - I am using node module [email protected] for stemming and removing stopwords. Newer versions of it aren't working. So, install version 2.4.5 of natural.
Follow these steps to set up locally:
- Download the files locally.
- Open terminal navigate to project folder - run these commands:
$ npm i express ejs natural@2.4.5
- File named precomputation.js can use memory which may not be handled by the default node.js allocated memory. To fix it, just run this command in terminal:
$ export NODE_OPTIONS="--max-old-space-size=8192"
- Such memory issue won't be there if only index.js is being run.
- Run index.js file to host app locally:
$ npm start index.js
- That's it! App is ready to launched locally🚀
This Search engine also allows users to filter the search type from codechef or codeforces.