This is a simple website that allows users to input a city name and retrieve the current weather information using the OpenWeatherMap API. Also users can enter a start and end location and get direction information using the OpenRouteService API.
- Input field to enter a city name for weather data
- Display of current temperature and weather condition for the entered city
- Error handling for invalid city names or failed API requests
- Input fields to enter start and end locations for direction data
- Display of directions from the start location to the end location
- Error handling for invalid address locations or failed API requests
- Enter the name of a city in the input field.
- Click the "Get Weather" button to retrieve the current weather information for the entered city.
- The current temperature and weather condition will be displayed below the input field.
- Enter the start and end location for direction data
- Click the "Get Directions" button to retrieve the current direction information for the entered locations.
- The directions and travel time will be displayed below the input field.
- Clone this repository to your local machine.
- Create a
.env
file in the root directory of the project and add your OpenWeatherApp and OpenRouteService API key:API_KEY=your_api_key_here
- Ensure
.env
is added to.gitignore
to prevent it from being pushed to the repository. - Install the necessary packages:
npm install
- Start the server:
node server.js
- Open your browser and navigate to
http://localhost:3000
to view the website.
- HTML
- CSS
- JavaScript
- Node.js
- Express
- OpenWeatherMap API
- OpenRouteService API
This project was created by Nick Bennings.
This project is licensed under the MIT License. See the LICENSE file for details.