About Β | Β Features Β | Β Technologies Β | Β Requirements Β | Β Starting Β | Β License Β | Β Author
Β
I was looking for any idea to practice a little React with typescript, and scouring a little on the internet, I found a free weather API β .
So I resolved to create a simple weather app, and as a plus, learn about the dark mode.
The app is simple, there's an input to put the city, and if the city exists, is shown the current weather together with five days forecast, else, is shown an error.
The API I used was the free plan of the open weather map, with a limit of 60 calls per minute.
You can see the demo here ππ
βοΈ Show current weather;
βοΈ Show five days forecast;
βοΈ Dark and light mode;
βοΈ Save theme and last search in local storage;
βοΈ Responsive app;
Before starting π, you need to have Git and Node installed, and also an account in open weather map to get your API key.
# Clone this project
$ git clone https://github.com/maurodesouza/weather-react-app
# Access the frontend repo
$ cd weather-react-app/frontend
# Create .env file with
REACT_APP_WEATHER_KEY=YOUR_KEY
# Install dependencies
$ yarn
# Run the project
$ yarn start
# The server will initialize in the <http://localhost:3000>
This project is under license from MIT. For more details, see the LICENSE file.
Made with β€οΈ by Mauro de Souza
Β