Giter Club home page Giter Club logo

frontend-coding-challenge's Introduction

Squirro Frontend Coding Challenge

Welcome to Squirro coding challenge! Your task is to create an APP with the book stores listing.

This repo contains JSON:API based application which should be used as the main source of book store data. API is located within book-store-api folder. Within the section below you will find more information on how to run/use book-store-api.

Your goal is to present the data (that you receive from the API) as shown in the wireframe:

Screenshot

Each circle marker represents specific task:

  1. book store image as a circle
  2. list of maximum of 2 books ordered by the number of copies sold. If there are no books show "No data available".
  3. Book store rating displayed with the stars. When user selects/clicks on the stars rating, it should be updated on the API side.
  4. Book store establishment date in DD/MM/YYYY format and website link. API will return the date in ISO 8601 format.
  5. Book store country of the origin flag image. Book store API will return only ISO 3166-1 2-letter country code. Use https://restcountries.eu/ API to get flag image for each country.

You should follow wireframe positioning of elements, but you can make it a bit prettier ;)

Book Store API

JSON:API is a specification for how a client should request that resources be fetched or modified, and how a server should respond to those requests. You can find JSON:API documentation on this link https://jsonapi.org/format/ but we will explain you some basics here to make it easier for you.

Book store API contains the stores, books, countries and authors resources. Each of the resources can have attributes object and a relationships object describing relationships between the resource and other resources.

Breakdown of resources and their relationships:

  • Stores
    • Attributes:
      • name
      • website
      • rating
      • image
      • establishmentDate
    • Relationships
      • books
      • countries
  • Books
    • Attributes:
      • name
      • copiesSold
    • Relationships
      • authors
  • Countries
    • Attributes:
      • code
  • Authors
    • Attributes:
      • fullName

API endpoint that you will need for most of the tasks is: http://localhost:3000/stores. This endpoint will return all store resources and related resources within included array. If you need any other endpint, check the JSON:API specification.

Running API:

  • Clone this repo locally
  • cd inside book-store-api folder and run npm install
  • serve it on the port 3000 by running npm run start

Rules

  • You can choose between Backbone and React as your main framework
  • Project startup procedure must be documented
  • Javascript should be based on ES6 or above
  • GIT history must be clean
  • Application presentation must be done by responsive web design principles
  • Write CSS from scratch, do not use Bootstrap and similar

Happy coding!!!

frontend-coding-challenge's People

Contributors

stjepangrego 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.