Deployed Weather API Dashboard: Click here to view
The Weather API Dashboard is a full-stack web application that allows users to check real-time weather conditions and a 5-day forecast for any city worldwide. Users can search for a location, view current weather conditions, and revisit past searches from their history.
This project integrates the OpenWeather API to fetch accurate weather data, stores user searches, and provides an attractive application for easy navigation and clean formatting for UX.
- Motivation: This project was built to practice integrating third-party APIs into a full-stack web application
- Why build this project: To create a functional weather dashboard where users can view current and forecasted weather data for various cities.
- Problem solved: To create a functional weather dashboard where users can view current and forecasted weather data for various cities.
- What I learned: API integration, handling environment variables securely, managing state in a front-end application, and implementing a backend with Express.js & TypeScript. Overall, the frustration with installation of dev dependencies are CRITICAL to the application functioning well!
To install and run this project locally, follow these steps:
- Open your terminal and run:
git clone [YOUR_GITHUB_REPO_URL] cd Weather-API-Dashboard - Move into the server directory and install dependencies:
cd develop/server npm install
Create an account at https://home.openweathermap.org/ and create your own API key In VS code Create a .env file in the server/ folder and add your API information
Navigate to the server/ directory and run: npm run build
npm start
Once server is started launch application using your Google Chrome browser and navigate to http://localhost:3001/
- Type a city name in the search bar and submit the request.
- The dashboard will display:
- City name & date
- Temperature (°F)
- Humidity (%)
- Wind speed (MPH)
- Weather condition with an icon
- View daily weather details, including:
- Temperature, humidity, and wind speed
- Weather condition for each day
- Previous searches are saved for quick access.
- Click on any previously searched city to instantly view its latest weather conditions.
- 🌦️ Real-time weather updates using the OpenWeather API
- ☀️ 5-day forecast for any location using search by city functionality
- 🌨 Search history is saved for quick access & delete functionality provided
- 🌩 User-friendly, responsive design with search history management.
- ☔ Developed with TypeScript, Node.js, Express, and Vite.
This project was completed using a combination of tutoring sessions, office hours, and TA guidance.
Additionally, the following resources were utilized:
- 💡 r/learnprogramming – Was referenced for setting up API applications
- 🤖 GitHub Copilot – AI-powered code suggestions for efficiency for debudding / fixes on code
- 🧠 XpertAI – Assisted in debugging and formatting errors
This project is licensed under the MIT License.
All functionality in this application was tested manually and debugging was completed through VS code and Google Developer Tools.
If you have any questions, feel free to reach out:
- GitHub: CDavis126
- Email: CherieDavis126@gmail.com