Visit the Weather App to get started
- Working with APIs
- Using ES7 Async functions and Promises
- Functional programming
- Principles of Object-oriented design
- Code organization with ES6 modules in Javascript
- Using Webpack for compiling Javascript modules
- DOM manipulation
The weather app renders a detailed meteorological report of the weather in a user's city or desired location. The application uses
the Open Weather API to provide requested data. To get a weather report, simply fill in the search field in the navbar with a city
name. By design, the temperature units default to Celsius. However, users can toggle the temperature unit to Fahrenheit from the
Unit
button, top-right in the navbar. To view other weather data, slide right on the widgets section. If weather information is
unavailable for a given city, a modal will appear with respective information.
- Internet Connection
- Git GUI
- An Integrated Development Environment
- Chrome and Firefox or Safari. Internet Explorer is not supported.
- Node Package Manager (NPM)
- JavaScript ES6, ES7
- Webpack
- Bootstrap
- HTML5/CSS3
- NPM
- To get started with the app, clone this project by running
git clone https://github.com/george-swift/weather-app.git
- Sign up or sign in Open Weather to get your API key
- Create a
.env
file in the root directory with the following code
WEATHER_URL=api.openweathermap.org/data/2.5/weather
API_KEY='INSERT YOUR API KEY HERE'
- Run
npm install
to install the needed packages and dependencies - A development tool is included in the npm script. Run
npm run start
to fire up a local server with live reloading. - If not already redirected, visit
http://localhost:8080/
in your browser to use the Weather App with dev server. - To terminate the server, enter
Ctrl + C
in your terminal
The Weather app uses the Jest test unit. Run npm test
to test the application
👤 Ubong George
- LinkedIn: Ubong George
- Twitter: @__pragmaticdev
- GitHub: @george-swift
- Unsplash creatives for aesthetic background images
- Icons 8 for icons used in widgets section
- Microverse
- Odin Project
Leave a ⭐️ if you like this project!
Available as open source under the terms of the MIT License.