utkzas / FoodConnect

Trie + levenshtein distance based, mobile-ready, bootstrap - Jquery powered Search engine response page

Home Page:http://food-connect.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Food Connect: Search Engine Response Page

This is a Trie + levenshtein distance based, mobile-ready, localstorage run, bootstrap - Jquery powered Search engine response page which comes with dataset of Charity based (Free) Food Leads for COVID affected patients thoughout the country.

In this terrible of pandemic, the heartening news is that there are many lending a helping hand to people in need. People are organising food for those who are in no position to cook. But there is a need for connecting all of them together.

This Project is solution for those looking for nutritious meals in different places throughout India that are tasty and prepared and delivered with all precautionary measures in place.

Features

  • Lists all searchable entries
  • Let's you add into searchable entries by submiting simple form that stores your entry into localstorage
  • Remembers your search history
  • gives search suggestions as you type
  • autocorrects (Did you mean "XYZ") when you searched with wrong spellings

Tech

This Project uses a number of open source projects:

  • Twitter Bootstrap - great UI boilerplate for modern web apps and to make the UI responsive!
  • JQuery - Primarily for the ease of DOM manipulation
  • autosuggest-trie - Minimalistic trie implementation for autosuggest and autocomplete components in pure javascript.
  • Browserify - Browserify lets you require('modules') in the browser by bundling up all of your dependencies. It is used to bundle autosuggest-trie and js-levenshtein to be used on browsers.
  • js-levenshtein - Pure JS implementation calculating the Levenshtein distance between two strings.

It doesn't have a backend and hence any entry made will only be available on same device (just trying to display search capabilties using pure javascript)

Installation

It requires Node.js and npm to install and bundle JS dependecies.

Install the node and npm if it is not installed and do the following.

npm install -g browserify
npm install autosuggest-trie
npm install js-levenshtein

Once installed, move ahead to bundle the dependencies with browserify:

browserify main.js -o bundle.js

License

MIT

About

Trie + levenshtein distance based, mobile-ready, bootstrap - Jquery powered Search engine response page

http://food-connect.netlify.app


Languages

Language:JavaScript 68.4%Language:HTML 16.9%Language:CSS 14.7%