This is a simple website built with Node.js that displays the current weather and forecast for a given location.
- Displays current temperature, weather conditions, high/low, etc for a given location
- 5 day / 3 hour forecast
- Responsive design that works on mobile and desktop browsers
- Uses the OpenWeather API for weather data
- Sign up for a free API key at OpenWeather
- Clone this repo
- Install dependencies
npm install - Create a
.envfile in the root of the project and add your OpenWeather API key
API_KEY=YOUR_API_KEY_HERE - Run the app
npm start - Open your browser to http://localhost:3000
The main templates are located in views/. They use the EJS templating engine.
The routes and API logic are located in app.js.
The static files (CSS, images, etc) are located in public/.
This project is open source and available under the MIT License.