Project to create a Weather App
Note: This Website works best with High Resolution Screens (1080p and up). Check the improvements section for future updates.
- Get current, 24 hours and weekly forecast.
- Search cities worldwide.
- Switch between imperial and metric systems.
- JS
- CSS
- HTML
- Visual Studio Code
- Linux terminal
- Git and GitHub
- ESLint
- Prettier
- npm
- Webpack
- Used ES6 Modules for more modular code.
- Used CSS3 grid and flex to create layout.
- Used Git and GitHub for project management.
- Tried to maintain clean code.
- Cross tested on Firefox and Chromium based browsers.
Features I am going to add to this app:
- Approach a Responsive Web Design(RWD)
- Add error handling for incorrect city name
- Used revealing module pattern for better code organizing.
- Used public API to get data.
- Used Webpack to build the app.
- Used third-party library for date and time formatting.
- learned about JavaScript promises
- learned about async/await in JavaScript
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You will need Node.js
and npm
installed globally on your machine.
- Get a free API key at https://openweathermap.com
- Clone the repo
git clone https://github.com/voidchef/weather-app.git
- Install NPM packages
npm install
- Enter your API key in
./src/components/weather.js
const API_KEY = "YOUR API KEY";
- Build an app
npm run build
Contributions, issues, and feature requests are welcome!
👤 voidchef
- GitHub: voidchef