Asynchronous web app that fetches the weather information from OpenWeatherMap API based on the ZIP code of the city and dynamically updates the UI.
- Set up the project environment, and downloaded the required packages (node.js and express.js).
- Added POST and GET routes to ensure correct retrieval of data from the server.
- Acquired API credentials from the OpenWeatherMap website.
- Created async functions to fetch weather data and store it on my local server.
- Set up a function that updated UI dynamically.
- Install Node.js on your local machine.
- Clone the repo or download the files.
- Run the command
npm i
to download the required packages. - Run the command
npm start
. - The server should start on http://127.0.0.1:8000/.
- All you should do is write the ZIP code of the city (United States). You can choose any of the ZIP codes at https://www.unitedstateszipcodes.org/.
- You can write your feelings if you want [optional].
- The application will show you
- The temperature of the city
- The date
- Your feelings