A simple single-page weather website built with Node.js and Express.js.
- Fetches current weather data based on ZIP code.
- Displays weather information in a user-friendly format.
- Node.js installed on your machine.
- An API key from OpenWeatherMap. Either use the one provided to you via BlackBoard or Sign up here to get one.
-
Clone the repository:
git clone https://github.com/deybyr647/CSCI39548-express-weather cd weather-website
-
Install the dependencies:
npm install
-
Create a
.env
file in the root directory and add your OpenWeatherMap API key:OPENWEATHERMAP_API_KEY=your_openweathermap_api_key
-
Start the server:
npm start
-
Open your browser and navigate to
http://localhost:3000
.
express-weather/
├── bin/
│ └── www.js
├── public/
│ ├── images/
│ ├── javascripts/
| │ └── main.js
│ └── stylesheets/
| └── style.css
├── routes/
│ └── index.js
│ └── weather.js
├── util/
│ └── owm.js
├── views/
│ ├── error.ejs
│ ├── index.ejs
├── .env
|── .gitignore
├── app.js
├── package.json
└── README.md