Weather app for Udacity that uses asynchronous functions, openWeatherMap API and user data to dynamically update the UI.
To run this code you first need to get nodejs installed on your computer the install the following pakages:
npm install express
npm install cors
npm install body-parser
server.js file is where you can start the server with node.js
navigate to server.js directory in your pc then in the terminal use:
node server.js
you should get a response like this
runnning on local host: 5000
then in your browser navigate to
http://localhost:5000/
-
server is built locally with node and express.
-
weather data is fetched from OpenWeatherMap API .
-
server includes an asynchronous get route to fetch data and an asynchronous post route to save data to the server from client side .
-
server logs data fetched to the console .
-
when the data is received from the server, UI updates dynamically.