The WeatherApp is a web application built using React.js. It leverages the www.weatherapi.com API to retrieve detailed weather information for a given city.
Check out Live Demo deployed on Vercel.
Before you can run this project, make sure you have the following software installed on your machine:
- Node.js (version v20.11.1 or higher)
- npm (version v10.2.4 or higher) or yarn (version v4.1.1 or higher)
Follow these steps to get the project up and running on your local machine:
-
Clone the repository:
git clone https://github.com/your-username/your-repository.
-
Navigate to the project directory:
cd your-repository
-
Install dependencies:
# Using npm npm install # Using yarn yarn install
To start the development server, run:
# Using npm
npm run dev
# Using yarn
yarn dev
This will start the Vite development server and open your application in the browser at http://localhost:3000
(or another available port if 3000 is already in use).
The development server will automatically reload the page when you make changes to the source files.
To build the project for production, run:
# Using npm
npm run build
# Using yarn
yarn build
This will create an optimized production build in the dist
directory.
You can deploy the production build to a hosting service of your choice.
For example, you can use Netlify or GitHub Pages to host your React app.
If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b my-new-feature
. - Make your changes and commit them:
git commit -am 'Add some feature'
. - Push your changes to your forked repository:
git push origin my-new-feature
. - Create a new Pull Request on the original repository.
This project is licensed under the MIT License