Giter Club home page Giter Club logo

ui-code-assessment-quiz's Introduction

Lucid UI Code Assessment

Welcome to the code assessment for Lucid's UI Team.

This README details what we expect from you on this assessment. If you have any questions, feel free to reach out anytime.

Please, use this repository to fork the project into your account and submit the link to us (by email) with the final solution when done.

Application

The purpose of this exercise is to build a React application based on the provided mockups and requirements below:

Quiz App

The application is a Quiz interface - a UI that shows a set of questions and lets the user select an answer for each one.

The Quiz features three different types of questions. Use the included mockups as references for styling.

Multiple
A multiple-choice question (predefined answer options)

Boolean
A "true or false" only answer question

Text
An open-ended text question

Requirements

  1. The UI should fetch the questions data from an API (provided in this repository). More details in API instructions

  2. The application should display one question per time, randomly selected from the set of questions.

  3. When the user finishes the Quiz, the UI should display a summary page with the results, including:

  • Number of correct answers
  • Number of incorrect answers
  • Total number of questions answered
  • The final score (%)
  • A button to restart the Quiz with a different questions

A reference mockup for the summary page is depicted below:

Setup

This repo provides a React application bootstrap. To get setup, run these commands:

  • Install dependencies:
npm install
  • Run it locally
npm start

The command above will:

  • Start an HTTP server for the API (localhost:4000);
  • Start an HTTP server (powered by react-scripts) for the front-end (localhost:3000);

API instructions

This repository provides a basic API (running under port 4000) that returns the required data for the application. The API will be available after running the npm start command.

GET Questions List

http://localhost:4000/api/questions

ui-code-assessment-quiz's People

Contributors

eutheran avatar csampson avatar vagnervjs avatar

Watchers

James Cloos 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.