Tyharo1/Salsify-Code-Exercise

★ 0Forks 0TypeScriptGitHub ↗Compare

README

Salsify-Code-Excercise

Setup

Follow the steps below to setup and run the application:

  1. Ensure you are using Node v16.10.0 or greater

  2. Navigate in to the /salsify-code-exercise folder

  3. Run npm install

  4. Run npm run start for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

    OR

  5. Run docker-compose up if you prefer to use docker (will require Docker to be installed and running on local machine).

Work Flow

  • Created Typescript version of the data service provided
  • Created types and enums from data object
  • Created sort Component and integrated the data service into it
  • Built initial UI layout and sort form
  • Mapped data from data service to UI and form elements
  • Added comparison operator logic
  • Manualy tested and fixed minor bugs

Work to complete if given the time

  • eslint and stylelint packages to keep code more consistent in form and structure
  • Form directives to help validate the sort form as its filled out
  • CSS polish to make app less boring to look at
  • Replace multi-select with a checkbox list for enumerated values
  • Unit tests

Contributors

Tyharo1

Issues