Skip to content

hirocsingh/GS1_Angular_Prototype

 
 

Repository files navigation

GS1 Canada Angular Prototype Development Task

August 2018 ~

Written by Jay, Avinash, Olga

Demo Url:

1. Overview: This taks is to define the prototypes of reusable UI components with up-to-date version Angular and Google Analytics.

2. Requirements:

Technical Requirements

  • Use Angular up-to-date version
  • Implement Single Page Application (SPA)
  • Use Typescript
  • Use Google Analytics
  • Deploy on free-version web hosting site

Business Requirements

  • Create 3 pages Angular pages (List, Chart, Dettail)
  • Embed Google Analytics
  • Be like ProtoType

3. Key responsibilities:

  • Draw Visualization Diagrams to create web pages
  • Design reusable UI components with Angular such as ShowLogo, ShowNavigation, ShowHeader, ShowFooter, ShowChart, ShowTable and so on
  • Create service module using Google Analytics API to diplay data as chart format
  • Test Unit modules using Jasmine/Angular testing utilities
  • Built/Deployed application on Cloud platform (Heroku)

4. System Diagram:

eps01

5. UI Component Visualization Diagram:

eps02

5. UI Component List:

Component Name Description File (ts,css,html)
GS1UiShowHeader Display GS1 Canada logo, nativation information gs1-ui-show-header.Component
GS1UiShowFooter Display GS1 Canada logo, corporate information gs1-ui-show-footer.Component
GS1UiShowLogo Display GS1 Canada logo gs1-ui-show-table.Component
GS1UiShowNavigation Display GS1 Canada menu (navigation) bar gs1-ui-show-nav.Component
GS1UiShowTable Display the retrieved data in a table gs1-ui-show-table.Component
GS1UiShowChart Display the retrieved data in a chart gs1-ui-show-chart.Component

6. Implement components and services:

  • ng new GS1-Angular-Trototype --routing
  • src\app\gs1-components-classes: create interfaces and classes in this app​
  • src\app: create components (.ts, .html, .css, .spec) that are used in this app​
ng g c GS1UiShowLogo --flat
ng g c GS1UiShowHeader --flat
ng g c GS1UiShowFooter --flat
ng g c GS1UiShowNavigation --flat
ng g c GS1UiShowContents --flat
ng g c GS1UiShowChart --flat
ng g c GS1UiShowDetail --flat
ng g c GS1UiShowTable --flat
ng g c GS1UiShowPageNotFound –flat
  • src\app: create servies (.ts) that are used in this app
ng g s GS1GetMenuList --module app --spec false
ng g s GS1GetGoogleAnalitics --module app --spec false
ng g s GS1GetObjects --module app --spec false
ng g s GS1GetData --module app --spec false
  • src\app\each .ts: implement classes for the components, which is used in .html tag
  • src\app\each .html: write UI tags for the components
  • src\app\each .css: write styles for the components
  • src\app\each .spec: write unit test for the components
  • src\index.html: the entry point of this App
  • src\styles.css: global css file
  • src\app.component (ts, html, css, spec): default componet called by index.html
  • src\app.module
  • src\app.component

7. Class Diagram:

eps03

8. Composite pages:

  • List page:

eps04

  • Chart page:

eps05

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 58.8%
  • HTML 36.2%
  • JavaScript 3.0%
  • CSS 2.0%