This is a weather app that shows temperature and other interesting stats for a provided city.
Some features and information my weather app provides are:
- Precipitation
- Temperature (°c)
- City
- Country
- Humidity
- Feels like
- Low temperature
- High temperature
- Wind speed
To run this project, open this link and enter any city in the search bar.
To run the project locally, follow these steps:
- Clone the repository to your local machine.
- Navigate to the root directory of the project.
- Open script.js with your preferred text editor.
- Go to https://openweathermap.org/.
- Create an account.
- Click the API Key in the users dropdown.
- Name and generate an API key.
- Activate your API key through your email.
- Once active, substitute my API key with your own.
- Open index.html and search whatever city you want.
I made this app with HTML, CSS, and JavaScript. I learned a lot about how each language operates and they come together. With CSS in particular, I learned that it had a lot more features than I expected with features like media queries. Media queries are a tool that allows you to conditionally style your page based on properties such as window width and device type.
This was also my first experience integrating an API with my project. It was interesting learning a lot about how API keys works and how to utilize them effectively. Open weather map is an API that provides information about the weather across different time frames for areas all over the world. It definitely made me appreciate that fact that other developers make their data public and available.