A simple weather app that tells you if you'll need an umbrella or sunglasses today!
- Shows current weather for any city
- Displays temperature, humidity, and wind speed
- Works on phones and computers
- Doesn't look like it's from 1999
Backend Stuff:
- Node.js
- Express (makes the website work)
- Axios (talks to weather APIs)
Frontend Stuff:
- Plain old HTML/CSS/JS
- A few Bootstrap bits to make it not ugly
-
Grab the code:
git clone https://github.com/kisk23/node3-weather-website.git cd node3-weather-website -
Install what it needs:
npm install
-
Get a weather API key from OpenWeatherMap (it's free)
-
Create a .env file and add:
WEATHER_API_KEY=your_key_here -
Start it up:
npm start
-
Open your browser to
http://localhost:3000
- Type a city name in the box
- Hit enter
- See if you need a jacket or not
- Check you put in the API key right
- Make sure you're online
- Try turning it off and on again (just kidding... but maybe restart the server)
Feel free to:
- Fix my bad code
- Make it look prettier
- Add new features
Just fork it and send a pull request!