Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 2.5 KB

README.md

File metadata and controls

65 lines (50 loc) · 2.5 KB

Build Status Test Coverage

Features for initial version


This is the simple forecast app which completely modular, The app is developed using angular2 with below points in mind

  • The app should display forecasted data for 5 days, not focused on current data
  • It should simple not too complicated
  • Less focused on ui more focused on javascript since it can be changed at any tiem
  • DOM tree should match with component tree

Live Demo


Demo

What is missing


  • End user centric (It is not developed for end user friendly)
  • Not much css work is done for current version
  • E2E Tests (It doesn't have robust e2e tests)
  • Advanced state management (It is not using any of the architecture pattern like flux or redux)
  • Best practices for documenting the typescript code

Hosting

It is hosted on github pages Link

Dependencies


*NodeJS 8.4.0 *npm 5.7.1 *@angular/cli 1.6.5

Technology


*Angular version-5 *Bootstrap version-4

Running


Run ng serve to start development server, you can access using Link

Building


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 e2e tests


Note: Currently e2e test cases are not written for this app Run ng e2e to execute the end-to-end tests via Protractor.

Deploying to github pages

  1. Generate github token Link
  2. Set GH_TOKEN environment variable with value as generated token
  3. Change repository url in package.json if required
  4. Run npm deploy
  5. It will deploy to gh-pages branch