The project is a simple clone of the google home and results pages.
- Your version of Google should have a homepage, with a logo, search bar and two buttons.
- Upon pressing one button an API call should be executed and users should be shown a page with ten results.
- Upon pressing the other, users should be taken to the page of one of the results.
- clone or download the repo.
- open terminal and navigate to
server
folder. - Run
npm install
to install server dependecies. - open terminal and navigate to
client
folder. - Run
npm install
to install client dependecies.
- Run
npm start
to launch the server. - Run
npm start
to launch the client.
- HTML
- CSS
- JavaScript
- Javascript / NodeJs
- NPM
- Express
- Cors
- Morgan
- Google-it
- Nodemon
- Jest
- Supertest
- GET
/
- returns
Hello World!
- returns
- GET
/search
- requires
search
query parameter - responsds with JSON:
- requires
{
results: [
{
title: 'string title',
link: 'string href',
snippet: 'string snippet',
}, // ...
];
}
- Finding Google-it simplified the back-end
none