Auto-completion project
Done by: Eslam, Qamar, Mahmoud and Kefah.
- The site takes the first letter and suggests the names of the countries according the first letters.
- The user picks the wanted country.
- The site takes the first letter and suggests all the universities in the wanted country.
- The user pick a certain university, then the information of the university will appear.
The site contains 3 folders:
-
public folder: the frond end part contains two sub-folders : **css folder **: contains the css files, and js folder contains the (request.js and index.js).
-
src folder: The back end part contains js files (handler.js, router.js, server.js, test.js)
-
lib folder: Coantains the JSON files.
- The code takes the query from the user and send the request to the request to the server.
- The server will send the response to the user of all the matching results.
- The site will reveal the information about the wanted university.
- Clone the project
git clone https://github.com/FACG2/Pied-Piper-Autocomplete.git
. - Install the npm by
npm install
to install all dependencies - Run
node src/server.js
- Navigate to http://localhost:3000/ in your browser.
- Start using the site.