A simple weather application built using React and Vite.js. This app allows users to view current weather information and forecast data for different locations.
- View current weather data.
- Search for weather information by location.
- Responsive design for mobile and desktop views.
- Shows detailed weather data for specific cities.
- React: Frontend library for building user interfaces.
- Vite.js: Build tool for faster development and optimized builds.
- CSS: For styling the application.
- OpenWeather API: For fetching weather data.
To get started with this project, follow these steps:
Make sure you have the following installed on your machine:
Clone the repository using Git:
git clone https://github.com/Frnn4268/weather-app.git
cd weather-app
Install the required dependencies using npm:
npm install
To run the application locally in development mode, use the following command:
npm run dev
The application will be available at http://localhost:8080/
To build the application for production, use the following command:
npm run build
The production build will be generated in the dist
directory.
If you prefer to run the application using Docker, follow these steps:
-
Build the Docker Image
docker build -t weather-app .
-
Run the Docker Container
docker run -p 3000:3000 weather-app
The application will be available at http://localhost:3000
.
To run the application using Docker Compose, follow these steps:
-
Build and Start the Services
docker-compose up --build
This command will build the Docker image if it doesn't already exist and start the container. The application will be available at
http://localhost:3000
. -
Stopping the Services
To stop the running services, use the following command:
docker-compose down
Update the .env
file in the root of the project to include your OpenWeather API key and any other environment-specific variables.
VITE_APP_WEATHER_ID="your_OpenWeather_Api_key"
- Project Overview: A brief description of what the project does.
- Features: Key features of the application.
- Technologies Used: Technologies and tools used in the project.
- Getting Started: Steps to set up and run the project locally.
- Docker Instructions: Instructions for running the app using Docker.
- Configuration: How to set up environment variables.