Skip to content

WeatherApp is an application made in angular 7 that gives weather data of cities.

Notifications You must be signed in to change notification settings

Shivam2k16/WeatherApp

Repository files navigation

This project was generated with Angular CLI version 7.3.4.

Functions

  1. The app consists of a grid of 9 panels. Every panel shows the weather data of one city. Initially, all panels are empty.

  2. On clicking on an empty panel, a text box is shown on the panel itself, asking the user to enter the city name. On entering the name, the panel now shows weather data for that city.

  3. Every panel have an “Edit” button - on clicking this, the user will be able to change the city shown in that panel.

  4. If there was an error in getting the data (eg. wrong city name), the panel itself shows the error and the user can re-enter the city name.

  5. Every panel has a background picture that describes the weather at the city

    eg. sunny/rainy/cloudy.

  6. On refreshing the page data will not be gone because I have used localStorage feature in it.

  7. The panels should be in a grid and responsive - the panels should align themselves in a row with respect to the screen size: for small screens - less number of panels in a row and for large screens - more number of panels in a row. To see the live application click here.

Special features

Enabled offline use - on refreshing the page, after switching off internet, the page shows the last obtained weather data (Until we clear the cache).

Api and framework

I have used OpenWeatherMap API for api data, Bootstrap UI Framework , Angular 7 framework , I have deployed the application on github pages.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

About

WeatherApp is an application made in angular 7 that gives weather data of cities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published