npm install --save
OR
yarn install --save
Optional to auto-refresh compilation
npm i -g nodemon
node main.js
or
nodemon main.js
Go to http://localhost:3002?q=search
Query parameters
qUse it to pass the query to searchhlFilter by language (hl=en-US)glFilter by locale (gl=US)ceidFilter by locale in ceid format (ceid=US:en)timeFrameGet news from up to this date i.e.(timeFrame=7d)
Example
https://localhost:3002?q=google&hl=en-US&gl=US&ceid=US:en&timeFrame=7d`