A weather application built with React using Openweathermap API.
Before you begin, ensure you have the following installed:
- Node.js: Download and install Node.js from the official website. npm (Node Package Manager) is included with Node.js.
Follow these steps to set up and run the application locally:
-
Fork and Clone the Repository
First, fork the repository on GitHub, then clone it to your local machine using:
git clone {repository-url}
Replace {repository-url} with the URL of your forked repository.
-
Navigate into the Project Directory:
cd forecastify
-
Install Dependencies Install the required dependencies by running:
npm install
-
Create and Set Environment Variable:
Create the following .env file in the root of the project:
- .env
Set the VITE_API_KEY variable inside the .env:
VITE_API_KEY={your_openweather_api_key}
Replace {your_openweather_api_key} with your actual API Key.
-
Running the Application:
To start the application, run the following command:
npm run dev
Access the Application Open your web browser and navigate to http://localhost:5173 to view your application in action.