/react-web-search-form

A simple react application to showcase a Web Search results from multiple api(wiki, DuckDuckGo) form with autocomplete feature.

Primary LanguageJavaScriptMIT LicenseMIT

WebSearch form using Reactjs

A simple react application to showcase a Web Search results from multiple api(wiki, DuckDuckGo) form with autocomplete feature.

Installation

To get started, open terminal and do-what-i-say

$ git https://github.com/dreamweiver/react-web-search-form
$ npm install

How to launch ?

Open the terminal and run below npm command

$ npm start

This command would trigger the npm script, which would launch the server automatically and will start the app.

Start entering value into the search field, autocomplete logic will be triggered on background and will pull auto suggestions from google api. selection on any of the auto suggestions will make a websearch(wiki & duckDuckGo api), thr results from these api's will shown on the screen.

How to run the test case or view code coverage.

In order to just run the test cases open the terminal and run below npm command

$ npm test

To know the actual code coverage,run below npm command

$ npm run test-coverage

To generate production level code(bundled => minified => uglified),run below npm command

$ npm run build

Author