An open API service indexing awesome lists of open source software.

https://github.com/snehanjanchatterjee/weather-dashboard

A weather dashboard made using Angular and openweathermap API https://snehanjanchatterjee.github.io/Weather-Dashboard/
https://github.com/snehanjanchatterjee/weather-dashboard

angular9 jasmine-framework karma openweathermap-api typescript weather-app weather-dashboard-application weather-forecast

Last synced: about 1 month ago
JSON representation

A weather dashboard made using Angular and openweathermap API https://snehanjanchatterjee.github.io/Weather-Dashboard/

Awesome Lists containing this project

README

          

# WeatherDashboard

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.0.

Deployed at: https://snehanjanchatterjee.github.io/Weather-Dashboard/

## Note
OpenWeather has discontinued its free access to API v2.5 (without subscription model), so the app is currently not functioning.

## To upload project

https://docs.github.com/en/github/importing-your-projects-to-github/importing-source-code-to-github/adding-an-existing-project-to-github-using-the-command-line

## Deployment to Github Pages

Process: https://angular.io/guide/deployment

## API

https://openweathermap.org/api

## 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 --output-path docs --base-href /Weather-Dashboard/` OR `npm run docs-build` in Command Prompt to build the project. The build artifacts will be stored in the `docs/` directory. Use the `--prod` flag for a production build.

When the build is complete, make a copy of docs/index.html and name it docs/404.html

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

## Dependencies


  1. Angular CLI v9.0.0

  2. NodeJs 14.17.4

  3. Bootstrap v5.1.0

  4. Angular Material UI

  5. Font Awesome v4.7.0

  6. Charts: https://xieziyu.github.io/ngx-echarts/#/welcome

    • Installation:

      1. v4.9.0npm install echarts@4 -S

      2. v5.2.2npm install ngx-echarts@5 -S

      3. npm install resize-observer-polyfill -D





  7. Weather Icons: https://openweathermap.org/weather-conditions

  8. i18n-iso-countries

    • Installation: https://stackoverflow.com/questions/52600104/how-to-use-i18n-iso-countries-in-angular-6



  9. Animated Icons:

    • Lord Icon

    • Installation: npm install lord-icon-element lottie-web



  10. Loading Spinner:

    • ngx-spinner@9.0.2

    • Installation: npm install ngx-spinner@9 --save

    • Guide: https://www.npmjs.com/package/ngx-spinner



  11. Toast Messages:

    • ngx-toastr@12.1.0

    • ngx-toastr@12.1.0 Installation: npm install ngx-toastr@12.1.0 --save

    • @angular/animations@9.0.7 Installation: npm install @angular/animations --save

    • Guide: https://www.npmjs.com/package/ngx-toastr/v/12.1.0



  12. dotenv

    • npm i -D yargs dotenv



  13. Country Icons

    • https://www.countryflagsapi.com/