Skip to content

SnehanjanChatterjee/Weather-Dashboard

Repository files navigation

WeatherDashboard

This project was generated with Angular CLI version 9.0.0.

Deployed at(Work under progress): https://snehanjanchatterjee.github.io/Weather-Dashboard/

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.

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.

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
  9. Animated Icons:
    • Lord Icon
    • Installation: npm install lord-icon-element lottie-web
  10. Loading Spinner:
  11. Toast Messages:
  12. dotenv
    • npm i -D yargs dotenv
  13. Country Icons