A weather app that uses the OpenWeather API to display the current weather forecast for a searched location.
Weather forecast site using the OpenWeather API. The project is from The Odin Project curriculum.
- Ability to search for a specific location
- Possibility to watch the data in metric or imperial systems
- Responsive design
- JavaScript
- CSS
- HTML
- Visual Studio Code
- Git and GitHub
- Webpack
- ESLint + Airbnb JavaScript style guide
- Prettier code formatter
- Linux terminal
⬆️ Back to top
To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
- Clone this repository:
$ git clone https://github.com/mooniiDev/weather-app.git
- Go to the cloned repository:
$ cd weather-app
- Install dependencies:
$ npm install
-
Generate an API key at OpenWeather website.
-
Enter your generated API key in
/src/api.js
:
const API_KEY = 'YOUR API KEY';
- Build the app:
$ npm run build
- Go to the
/dist
location and openindex.html
file with a browser.
⬆️ Back to top
- Used revealing module pattern for code organizing
- Used HTML5 semantic elements for better structure and readability
- Used CSS Grid and CSS Flexbox modules to create a responsive layout
- Cross tested on Firefox and Chromium browsers
- Improved classes naming convention
- Learned to use basic API functionality
- Learned basic error handling
- Learned to use Font Awesome icons in
svg
format