To run the Weather App on your local system, make sure you have Node.js installed. You can download it from here. This will give you access to the Node Package Manager (npm), which is essential to run the project.
- Open the terminal and navigate to the project directory.
- Run:
npm install
to install all the dependencies. - Create a
.env
file at the root of the project directory and add your sensitive API keys: - Run:
npm start
to start the development server. - Open http://localhost:3000 in your browser to view the Weather App.
- Any system with a basic configuration.
- Operating System: Windows / Linux / Mac.
- Updated browser.
- Node.js installed (If not, download it here).
- Any text editor of your choice.
- JavaScript (ES6+)
- React.js
- Axios
- RapidAPI
- OpenWeatherMap API
- HTML, CSS
- React: A JavaScript library for building user interfaces.
- Axios: A promise-based HTTP client for the browser and Node.js.
- React-Switch: A customizable switch component for React.
- React-Router-DOM: Declarative routing for React applications.
- React-Icons: Popular icons as React components.
- react-async-select: A flexible and beautiful Select Input control for ReactJS.
- react-loader-spinner: A lightweight loading spinner component for React.
- dotenv: A zero-dependency module that loads environment variables from a .env file.
- Dark Mode Support: Toggle between light and dark mode.
- Weather Search: Users can search for weather information by city name.
- Current Weather Display: Displays current weather information including temperature, humidity, wind speed, etc.
- 5-Day Weather Forecast: Provides a 5-day weather forecast for the searched city.
- Loading Animation: Displays a loading spinner while fetching weather data.
- Responsive Design: Optimized for various screen sizes.