rebase-master / myweather

Simple weather app built using AngularJS 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Myweather

alt tag

Setup

  • Run npm install from the project root to install dependencies
  • Create a file /src/config/app.config.ts with the following contents:
    export const CONFIG = {
      apiEndpoint: "http://api.openweathermap.org",
      apiPath: "data/2.5/forecast",
      apiKey: YOUR_API_KEY
    };

The API key can be obtained by creating an account on https://openweathermap.org

  • Run npm start and browse to http://localhost:4200 to access the app.

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. Before running the tests make sure you are serving the app via ng serve.

About

Simple weather app built using AngularJS 2


Languages

Language:TypeScript 52.8%Language:HTML 23.2%Language:CSS 14.5%Language:JavaScript 9.6%