FrankHassanabad / facet-filtering

Angular Example which filters data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facet-Filtering

This is a simple example Angular application written with Angular5. It does simple filtering of cars.

gif of project

Install and run

npm install
npm start

Open your browser to http://localhost:4200/

Run unit tests

npm run test

gif of project

Angular Code highlights

Plain TS/JS code highlights

Unit test code highlights

Accomplished:

  • Angular2+ (Angular5)
  • Broken down components for each part of the UI
  • TypeScript in most areas. Very few any
  • Wrote most of the code in pure functions and kept Angular touch points small
  • Jasime Unit tests
  • Card based layout
  • Filters work as a OR filter
  • Wrote aggregate functions which take parameters for buckets

TODO:

  • Implement mock-cars as a AngularService
  • Animations of cards
  • Style the checkbox
  • Use -1 for filters
  • Align left the numbers in the category section
  • Truncate the title with ellipse when too and give a tool tip
  • Use pipe for title case formatting and pipe for numerical data
  • Use cypress.io for e2e testing
  • Use more semantic HTML such as <section> where appropriate
  • Remove use of float for just angular flex-box.
  • JSDocs for the source
  • Pretty name "mapping" for the car JSON
  • Sort the lists so that filters and car placements are predictible
  • Dom tricks to not show all cards on the DOM (performance) or paging/infinite scroll of data
  • Add scss instead of regular css files
  • More types and TypeScript strictness

About

Angular Example which filters data


Languages

Language:TypeScript 91.3%Language:CSS 4.8%Language:HTML 2.5%Language:JavaScript 1.4%