Coder Social home page Coder Social logo

test-quiz's Introduction

Quiz

This is a technical test for the hiring process of a backend developer position.

Instructions:

  • The task is to build a super simple quiz with a few questions and a few alternatives for each question. Each with one correct answer.

Preferred Stack:

  • Backend - Golang
  • Database - Just in-memory, so no database

Preferred Components:

User stories/Use cases:

  • User should be able to get questions with a number of answers
  • User should be able to select just one answer per question.
  • User should be able to answer all the questions and then post his/hers answers and get back how many correct answers they had, displayed to the user.
  • User should see how well they compared to others that have taken the quiz, eg. "You were better than 60% of all quizzers"

Prerequisites

Run backend

Execute on the root of the project the following command on console:

make run-backend

Run client

To get the information of all commands for the client side, execute the following command on the root of the project:

make run-client

Make sure to have backend running in another console tab or window.

Available commands:

Get quiz

Get the current quiz with its title, description and questions. Each question has an ID and a list of choices. Each choice has an ID.

Execute on the root of the project:

make get-quiz

Select choice

Select a choice for a question of the current quiz. Already selected choices can be overwritten.

Execute on the root of the project:

make select-choice [question ID] [choice ID]

Submit quiz

Submit current quiz choices, getting

  • amount of correct answers
  • information on how well it went for you compared to others that have taken the quiz

Execute on the root of the project:

make submit-quiz

Test

To run the unit tests, just execute on the root of the project the following command:

make test

Lint

To run lint (it help us to write better code), just execute on the root of the project the following command:

make lint

test-quiz's People

Contributors

kvothe838 avatar

Watchers

 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.