Giter Club home page Giter Club logo

ridestore-test-case's Introduction

Ridestore javascript front-end test case

CircleCI status: CircleCI

Assignment goal and Description

Create a single-page application in AngularJS (1.x) that displays a list of Ridestore Products.

  • The code should take half a day to a day to write (4h).

Expectations

Too Easy? Bonus:

Lets get started...

  • Start by fork this repository and give access to @linushellberg and @batista.

Web service request return

A call to GET https://dev.ridestore.com/rest-api/v2/categories/208?lang=com will return the following JSON response (removed the irrelevant values):

{
  "category_info": {
    "name": "T-shirts",
    "meta_title": "Ridestore - T-shirts Buy online here!",
    "meta_description": "Buy T-shirts at Ridestore.com - You always get free shipping, free returns and 30 days money back guarantee!",
    // ... others not relevant for this task
  },
  "products": [
    {
      "id": 280674,
      "brand": "Newsoul",
      "department": "Streetwear",
      "productype": "T-shirt",
      "shortname": "Bloom",
      "color": "Allover",
      "image": "D\/5\/D5439_1.jpg",
      "type_id": "configurable",
      "image_padding": "regular",
      "url_key": "newsoul-bloom-t-shirt-allover",
      "price": 29.9,
      "sale_price": null
    },
    // ... other products similar to the above
  ],
  "error": false,
  "status": 200,
  // ... others not relevant for this task
}

Relevant fields:

  • category_info:
    • meta_title: should be displayed in page title.
    • meta_description: should be in the meta description tag.
  • products:
    • the product name should be displayed to the user in the format:
      • brand + "shortname" + productype
    • price: the product price
    • sale_price: the sale price (if available)
    • image: the product image (see note below regarding this field)

Special attention to the product images

The product image should be prefixed with "https://ridestore.imgix.net/catalog/product/", so in the example response above, for the first product image (products[0].image), the <img> source would be "https://ridestore.imgix.net/catalog/product/D/2/D2980_11.jpg".

ridestore-test-case's People

Contributors

studentivan avatar

Watchers

James Cloos avatar  avatar

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.