Welcome to the Weather App! This TypeScript project allows you to fetch weather information from a university weather API based on a specified location.
The Weather App is a simple web application that leverages TypeScript to fetch weather data from a weather API. By providing a location, users can retrieve current weather conditions, such as temperature, humidity, wind speed, and more. The application offers an intuitive interface to display the retrieved weather information in a user-friendly format.
- Weather Information: Fetches and displays the current weather data based on the user's specified location.
- Location Autocomplete: Provides autocomplete suggestions for location input to enhance user experience and accuracy.
- Error Handling: Handles errors gracefully and displays appropriate messages when weather data cannot be fetched or the location is invalid.
To run the Weather App locally, follow these steps:
-
Clone the repository or download the source code.
git clone https://github.com/TomNgo03/Weather_Forecast.git
-
Navigate to the project directory in your terminal.
-
Install the dependencies by running the following command:
npm install
-
Set up the environment variables. Create a .env file in the root directory and add the necessary API key(s) or configuration variables, as specified in the project documentation.
-
Build the TypeScript files using the following command:
npm run build
-
Start the application using the following command:
npm start
-
Open your web browser and visit the application at http://localhost:3000 to access the Weather App.
-
Open the Weather App in your web browser.
-
Enter a location.
-
View the retrieved weather data, including temperature, humidity, wind speed, and any other relevant information.
The Weather App is built using the following technologies:
- TypeScript: JavaScript superset that provides static typing and enhanced developer tooling.
- Fetch API: Built-in web API for making HTTP requests to retrieve weather data from the weather API.
- Weather API: An external API that provides weather information based on location queries. Feel free to explore the project codebase to learn more about the implementation details.
Contributions to this project are welcome! If you have any suggestions, bug fixes, or new features to propose, please open an issue or submit a pull request. Let's make the Weather App even better together!
This project is licensed under the MIT License. You can find the full license text in the LICENSE file.