Giter VIP home page Giter VIP logo

angularjs-exercise's Introduction

AngularJS refactoring playground

With the present example, code refactoring scenarios can be discussed and practiced.

##Scenario

  • The application consists of two views.
    • The login dialog - consisting of an input user name 'foo' and password 'password'.
    • The picture view - consisting of two images with stored metadata, which can be read by mouse hover.
  • The user first enters the login view and enters the user data.
    • When valid user data the user enters in the picture view.
    • For invalid user data a notification appears.

Subjects

The focus is on the following topics:

  • Software Architectural aspects such as SOLID (https://en.wikipedia.org/wiki/SOLID_(object-oriented_design))
  • Refactoring Basics +provide a basis for refactoring +
    • Recognize, resolve and test bad smells
  • Javascript Basics
  • AngularJS Basics
    • Building a AngularJS application
      • Declaration Pattern MV * (MVC / MVVM)
    • Detecting and explaining the concepts in AngularJS such as
      • Scopes
      • Data Binding (Two-Way Binding vs. One-Way Binding)
      • Dependency Injection & Injector
      • Templates
      • Expressions
      • Filter
      • Directives
      • Modules
      • Routing
  • AngularJS and integration with other JS frameworks such as JQuery, ZeptoJS vs. JQlite
  • Dependency Management
    • Optimization -> Application example Bower
  • Unit testing
  • Debugging
  • Automation & optimization
    • recognize the necessity and potential of automation, such as
      • Serve or Watchers
      • Browser Sync
      • Wireing dependencies
      • Automation (unit-) test
    • recognize the need for optimization such as
      • minification
      • concatenation
      • Vendor prefixes
      • ngAnnotate
      • File Suffixes

Setting up the environment

npm install

Gulp tasks

Following Gulp tasks are available:

Start the entire environment:

gulp

Start reviewing the coding guidelines:

gulp jshint

Start the "imaginary" unit tests:

gulp test

Starting the Web Server:

gulp connect

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.