API | express.js
Get regular daily updates on the pandemic across the globe.
-
It has a Search box to search COVID-19 reports based on Country Name or Country Code. All the Countries data is fetched using this API (Client-side). See filter.js to see its usage.
-
It can automatically fill the search-box using your Geo-location and give the COVID-19 reports of your country (server-side) on just one click.
-
server.js DB implementation
-
Graphing data retrieved from this API by Chart.js is pending. This api url given shows data of India. To search for other countries replace 'india' with any other country-slug-name (for eg :- afghanistan) in the url.
-
Clone this repo locally on your PC in a local directory.
-
Open terminal and
cd
to that local directory. Use the commandnpm install
to install all the dependencies.NOTE: before proceeding to step 2 make sure you have node.js installed.
-
Run the local server by using command
node server.js
. -
Open your browser and enter
http://localhost:3000/
in your browser to run the Web App locally on your PC.
This app is hosted on Heroku!
Visit the hosted website here ;-)