This project is about working with Web APIs and asynchronous code, creating a web app that uses OpenWeatherMap API to get weather based on user's location, and dynamically update UI.
To get the project up and running follow the steps below:
-
To set up project environment, make sure that the Node and packages (express, cors and body-parser) installed, and which are used to create the server.
-
After that to start your server, run the command
node server.jsin your terminal
- Setting up project environment, making sure Node and packages installed, and included in server.js file.
- Added POST and GET routes to ensure correct retrieval of data from the server.
- Acquired API credentials from OpenWeatherMap website.
- Created async functions to fetch weather data and store it on my local server.
- Set up a function that updated UI dynamically.
