Skip to content

mlncstr/angular-7-simple-weather-app

Repository files navigation

WeatherApp

This project was generated with Angular CLI version 7.3.0.

SETUP

Run npm i and then get an API key and change your cities with directions below.

API Key

Get your API key from OpenWeather (https://openweathermap.org/api) and put it on line 11 of app.component.ts

Changing Cities

On the main app component change any of the 4 API calls city query.

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.

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.