Weather App
This is a simple weather application that allows users to view current weather data for a specified location. The app is built using React and TypeScript, and it fetches weather data from an external API.
For that we use the OpenWeatherMap API. You can get your own API key by signing up at OpenWeatherMap.
Features
- Search for weather by city name
- Display current weather conditions including temperature, humidity, and wind speed
- Responsive design for mobile and desktop views
- Change API key preferences
- Display weather data in a user-friendly format
Installation
- Clone the repository:
git clone https://git.the1s.de/theis.gaedigk/weather-app.git
- Navigate to the frontend project directory:
cd weather-app/frontend
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser and go to
http://localhost:7002
to view the app. Note: There is also a backend server directory, which is currently not in use. - You can ignore it for now.
Usage
- Get an API key from OpenWeatherMap.
- Click on the "Set API Key" button in the header to enter your API key.
- Enter a city name in the search bar and press Enter or click the "Get Weather" button.
Now you can view the current weather data for the specified city!
Other Information
Technologies Used
- React
- TypeScript
- Tailwind CSS
- OpenWeatherMap API
- Vite
Version
1.0.0
Description
Languages
TypeScript
89.1%
JavaScript
6.5%
HTML
1.9%
EJS
1.2%
Dockerfile
1.1%
Other
0.2%