Welcome to the Weather Web API repository! This project is a simple FastAPI-based weather application that fetches real-time weather data using the OpenWeatherMap API. It features a clean, responsive user interface powered by Jinja2.
- Real-Time Weather Data: Get up-to-date weather information for any location.
- Responsive Design: The application adapts to different screen sizes for a seamless user experience.
- FastAPI Framework: Built on FastAPI for quick and efficient performance.
- Jinja2 Templating: Utilizes Jinja2 for rendering dynamic HTML content.
- OpenWeatherMap API: Fetches weather data from a reliable source.
- FastAPI: A modern web framework for building APIs with Python 3.7+.
- Jinja2: A templating engine for rendering HTML.
- CSS: For styling the application.
- HTML: The backbone of the user interface.
- OpenWeatherMap API: A service that provides weather data.
- Vercel: For deployment and hosting.
To get started with the Weather Web API, follow these steps:
-
Clone the Repository:
git clone https://github.com/Hudaifa0/weather-web-api.git cd weather-web-api
-
Install Dependencies: Make sure you have Python 3.7+ installed. Then, install the required packages:
pip install -r requirements.txt
-
Set Up Environment Variables: Create a
.env
file in the root directory and add your OpenWeatherMap API key:OPENWEATHER_API_KEY=your_api_key_here
-
Run the Application: Start the FastAPI server:
uvicorn main:app --reload
-
Access the Application: Open your browser and go to
http://127.0.0.1:8000
.
Once the application is running, you can search for the weather of any city. Simply enter the city name in the search bar and hit enter. The application will display the current weather conditions, temperature, humidity, and more.
- Search for "London" to see the current weather in London.
The Weather Web API is also deployed on Vercel. You can access the live version here.
You can download the latest version of the Weather Web API from the Releases section.
If you need to download a specific file, please visit the link above and execute the required files.
Contributions are welcome! If you want to help improve the Weather Web API, follow these steps:
- Fork the Repository.
- Create a New Branch:
git checkout -b feature/YourFeature
- Make Your Changes.
- Commit Your Changes:
git commit -m "Add your message here"
- Push to the Branch:
git push origin feature/YourFeature
- Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or issues, feel free to reach out:
- Email: [email protected]
- GitHub: Hudaifa0
This repository covers various topics including:
- CSS
- FastAPI
- FastAPI-Jinja2
- FastAPI Weather
- HTML
- Jinja2
- OpenWeatherMap API
- Python 3
- Vercel
- Weather
- Weather App
- Web App
For more information, check out the following resources:
Thank you for checking out the Weather Web API! We hope you find it useful. For the latest updates, please visit the Releases section.