Coder Social home page Coder Social logo

1637339724988-catalogue's Introduction

Device Catalogue

A customer would like to browse all the Apple devices available for purchase. Create an application with a component that reads and displays devices from the local restful API on port 8081. The API has two routes /watches which returns a list of watches and /iphones which returns a list of iPhones.

Application Requirements

  • Create either (or if time allows, complete both):
    • a /watches route that displays a grid of watch device cards - reference card design
    • a /iphones route that displays a grid of iPhone device cards - reference card design
  • Each route represents a page in the application. Each page should have a heading indicating the type of device listed on the page and a grid showing all the devices in that category.
  • An index page with a list of all pages (i.e. a watch page and phone page).
  • Unit tests for your work where it makes sense. At TELUS Digital we pride ourselves on having applications with great test coverage. Please be prepared to talk about your testing choices.
  • TDS components MUST be used. List of useful components.

Apple Watch and iPhone assets are available in the public directory

Submission Requirements

  • Fork this repository to your personal Github account
  • Submit your solution as a Pull Request against the main branch of your forked repository

The anatomy of the device API response

The mock API replies with the following structure:

{
  "data": [
    {
      "name": "Apple Watch Series 6",
      "brand": "Apple",
      "price": 1399
    }
  ]
}

Local development

Install dependencies

npm install

Start the local API server on port 8081 along with a client side user interface on port 8080.

npm run dev

Running the tests

npm run unit

Reference Device Card

All device cards should look as close as possible to the following device card:

Note: all device cards should simply showcase the name of the device, the brand and price with the following copy:

TELUS Easy Payment and Bring-It-Back applied. Read legal footnote Taxes due upfront.

device card

Reference Device Grid

The device grid should look as close as possible to the following device grid but exact spacing isn't required:

device card

Useful TDS components

Recommendations

  • Use multiple commits to show incremental progress. Learn more about the Github flow here
  • Treat this exercise as a pull request you’d submit to your colleagues or to an open source project.

1637339724988-catalogue's People

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.