Giter VIP home page Giter VIP logo

pluralsight-sample's Introduction

Pluralsight Code Sample

Running

To run the app, first go into backend and run yarn start to start the api server on localhost:5000. Then go into frontend and run yarn start to start the gui on localhost:3000.

Features

Pagination

Pagination is handled by offset and size parameters to the query api. The frontend manages determining what these parameters should be to produce pages of data.

Sorting

Sorting is determined by the sort parameter, which has sub properties key and order. The frontend determines which sort parameters to send based on which of the column headers has been clicked. Clicking a column header a second time reverses the order.

Filtering

Filtering is determined by the filter parameter, which can contain keys for any column. These keys should map to filtering values, which serve slightly different purposes depending on the column.

  • Because the question is a text field, filter is a simple case insensitive matching string; if the filter is contained in the question it will match.

  • Because answer is numeric, filter acts as an exact numeric matching. THis behavior is currently determined purely by the type of the value in the column.

  • Distractors are also treated as numeric, but a row will match a distractor filter if any distractor in the array matches the filter.

Other Operations

I had hoped to also get to create, delete and edit, but I didn't feel that I had time to implement them properly. That being said, there are stubs of the implementations in the code base, blocked off from use by the express routes throwing the error Not Implemented if they are accessed.

pluralsight-sample'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.