Code Monkey home page Code Monkey logo

bbangularexcercise's Introduction

bbAngularExcercise

Please download the zip folder and unzip it.

weather-report

I have used yo angular generator for desired architechture. ( As per current trend we can opt angular cli )

Additional library is used with npm protractor for E2E testing.

Build & development

Run grunt for building and grunt serve for preview.

Testing

Running grunt test will run the unit tests with karma.

Additional e2e test will run with protractor.

I have configured test covrage for karma Unit test.

  1. Currently format is text which will reflect in terminal
  2. To get html go to karma_congif.json and replace the below snippet

coverageReporter: { type: 'html', dir: 'coverage' },

Please make sure you should having jdk installed in your system, before starting the selenium server.

  1. Start the Selenium server: ./node_modules/.bin/webdriver-manager start

  2. Open a new terminal and run Protractor: ./node_modules/.bin/protractor protractor.conf.js

Steps to be followed:

npm install

bower install

grunt serve

grunt test ( for all test together)

grunt runOnlyKarmaTest

grunt runOnlyProtractorTest

grunt build

As per the time constraint, I have given prototype of the architecture.

  1. Moduler code for controller, services, views, and constants, while using different environment like DEV, QE, and PROD
  2. Build version will be available in "dist" folder and the command needs to be is "grunt build", which covers all the operation like minification, uglyfication, concatination.
  3. All environment varibles will be available in appConstant.js file. (In this project, I have kept the App Key and API URL)
  4. Angular $q Promises are implemented while calling the API. As per standards extra handling like interceptors and web sockets can be implemented for the secure and dynamic live data streaming, for which I having the hands on experience.
  5. For the current implementation of the testing framework which I have shared has the sample test coverage, which can be further enhanced by adding the more test scenarios. Adding the test scenarios will also improve the code coverage report.

bbangularexcercise's People

Contributors

an321657 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.