This is one of the first applications I wrote to practice downloading data from the API, displaying it and error handling. The application allows you to search for weather in any city in the world. After searching for a city, you can add it to your favorites, which will appear above the input field.
The application is not finished, but it allowed me to practice some skills.
Unfortunately, I prepared the website only in Polish language.
There is no demo link for this project.
- create-react-app
- webpack
- Normalize.css
- Styled Components
- JSX
- JS ES6+
- React
- https://openweathermap.org/ (database for weather)
Adding a city to your favorites. The city search is case-sensitive.
To run this project locally, follow these steps:
- Clone the repository to your local machine using the following command:
git clone https://github.com/carterstorm/react-weather-app.git
- Navigate to the project directory:
cd react-weather-app
- Install the project dependencies using npm or yarn:
npm install
or
yarn install
- Start the development server:
npm start
or
yarn start
- Open your browser and visit http://localhost:3000 to view the website.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!