/weather-app

A Weather application that displays current weather information along with a four day forecast for various cities.

Primary LanguageTypeScript

Weather App


A weather application that displays daily weather information along with a four day forecast. View it here.

To run this locally, you need to have node installed. Get that here. You also need to have the Angular CLI installed. Open up the terminal and run

npm install -g @angular/cli

This will install the latest version of the Angular CLI which will enable you to run Angular applications.

Next up, navigate into the directory of your choice on your system and clone this repository by running

git clone https://github.com/olamileke/weather-app.git

When cloning is complete, navigate into the application directory by running

cd weather-app

At this point, we need to install all the packages needed by the app to run. This is done by running

npm install

This will install all the packages defined in the package.json file in the application root.

One more thing to do before running the app. Get an openweathermap api key at openweathermap.org

Locate the config.ts file in the src/app subdirectory and set the openweathermap api key you got as the api_key in the exported config object.

Then, return to the terminal in the application root and run

ng serve

When the application is done compiling, access it at localhost:4200. Alternatively you can specify the port you want the application to run at by adding a port parameter like

ng serve --port 5000

Here, the app will be available at localhost:5000