-
Clone the repository:
git clone https://github.com/DimitarSD/weather-forecast.git cd weather-forecast -
Install dependencies:
npm install
-
Create a
.envfile in the root directory and add the OpenWeatherMap API key from the email:REACT_APP_API_KEY=your_api_key_here
-
Start the development server:
npm start
-
Open the browser and navigate to
http://localhost:3000.
To build the application for production, run:
npm run buildThe build artifacts will be stored in the build/ directory.
To run the tests use:
npm testhttps://weather-forecast-three-delta.vercel.app/
The following features and improvements could be implemented:
- Enhanced Error Handling: Error handling for API requests and geolocation
- Unit Tests Coverage: Increase unit test coverage for all components and custom hooks.
- Caching: Implement caching for API responses to reduce load times and API usage.