The app gets a zip code and some text data entered by user to collect the weather information using web API and updates the UI dynamically. The main three functions i.e getting the data from the web API, posting the data to the server and updating the UI are handled asynchronously.
- Clone the project
- Get an API key from openweathermap (it's free)
- Open
app.jsfile in thewebsitedirectory using your desired text editor - Change the value of the variable
apiKeyin line 6 with your own api key
In the command line run:
node app.js
Open the browser and on the address bar type:
http://localhost:3000
HTML CSS JavaScript Node.js Openweathermap API