Weather Dashboard is a user-friendly web application that allows users to view the current weather and forecast for different cities. The dashboard also features a sidebar with motivational quotes to inspire users throughout their day. This project demonstrates the integration of various web development technologies including HTML5, CSS3, JavaScript, Node.js, and SQLite.
- Current Weather: Displays current weather conditions for a searched city.
- Favorite Cities: Users can save and quickly access their favorite cities.
- Motivational Quotes: Sidebar displays inspirational quotes.
- Responsive Design: Optimized for both desktop and mobile devices.
- User Preferences: Saves user preferences and favorite cities using a backend service.
+ HTML5
+ CSS3 (Flexbox and Media Queries)
+ JavaScript (ES6)
+ Node.js
+ Express.js
+ SQLite
+ Rapid API (for weather data)
+ A motivational quotes API (or hardcoded quotes for simplicity)
- Node.js and npm installed on your machine.
- Rapid API key.
- Clone the repository:
git clone https://github.com/patricklungu99/CourseProject.git
cd backend
- Install the dependencies:
npm install
- Start the server:
npm start
- Open your frontend, start the live server and navigate to http://localhost:5500.
- Search for a City: Enter the name of a city in the search bar and click "Search" to view current weather and forecast.
- Add to Favorites: Click the "Add to Favorites" button to save the city to your favorites list.
- View Favorite Cities: Click on a city in the favorites list to quickly view its weather information.
- Responsive Design: The layout adapts to various screen sizes, ensuring a seamless experience on both desktop and mobile devices.
- WeatherAPI.com: Used to fetch current weather.
- Get Quotes API: Used to fetch motivational quotes.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Open a pull request.
Please ensure your code follows the project's coding standards and includes appropriate tests.