Weather APP - Using NodeJs, Weather API and HTML, CSS, JavaScript
Description:
Weather app is created using Node.js, Express.js framework to create the API's. To fetch weather details we used https://openweathermap.org/api.
Technologies
- Backend: Node.js, ExpressJs (Framework)
- Frontend: HTML, CSS, JavaScript
- API: https://openweathermap.org/api
Steps to Run
Step 1
Clone the repository on your machine (Desktop/Laptop) using following command
git clone https://github.com/abhishekdhapare9392/weather-app-node-js.git
Step 2
run npm install
Step 3
copy .env.expample file to .env and add API_KEY
value with your API key. To get API key visit Open Weather Map API link.
Step 4
run npm start
. After running this command you can visit the link http://localhost:3000 for frontend. For API's visit the link http://localhost:3000/doc
Why used Nodejs if we can call the api from JavaScript frontend?
To hide the API Key and url of openweathermap. This is a best example of Opps concept, Abstraction.