Git Product home page Git Product logo

trouble-maker's People

Contributors

abhishek97 avatar dhroov7 avatar firefinchdev avatar himankbhalla avatar imdhruvgupta avatar jatinkatyal13 avatar manit1 avatar rish-singhal avatar vdvibhu20 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trouble-maker's Issues

Create Preview Quiz View

Currently, we don't have any route to preview the quiz with the options that we've created. Create a route /quiz/<id>/preview which has a similar UI to the following Image
Screenshot 2020-05-27 at 5 07 11 PM

Use question as a query param to index the questions in the quiz.

Submission Guidelines

  • Online one person will be assigned this issue and will be tagged as the Assignee
  • Connect me over Discord online-codingblocks channel or share your approach in the comments
  • User Ember CLI rather than creating the files manually
  • Attach screenshot/GIF of the final result before submitting the PR
  • Once assigned start with a WIP PR and add @jatinkatyal13 as the reviewer

Pre-requisite

  • Basics HTML/CSS
  • Basics of Ember JS

Feature: Add tags support

It would be easy to add tags to questions to easily find them.

Schema

tags
id | name | createdBy | createdAt | updatedAt
question_tags
id | tagId | questionId | createdAt | updatedAt

API to implement

  • POST /tags
  • GET /tags
  • Make sure we can include tag with questions. i.e they are related
  • Make the /questions api support filter: { tags: [ 12, 34 ] } query param.

The frontend part of this feature is explained here: coding-blocks/trouble-maker-frontend#18 and the bounty is for combined feature implementation.

Add partial index on quizQuestions

Issue:
A questions once deleted from quiz cannot be added again.

Steps to reproduce:

  1. Add a question in quiz
  2. delete that question
  3. Now try to add it again, it wont get saved

Solution
Add partial index on model quizQuestions

Add a flag "multipleCorrect" to questions

A question can be either multiple correct or single correct.

  • Add a flag to indicate this. "multipleCorrect" : Boolean
  • if the question is single correct, only allow one correctAnswers or send an error.
  • Add similar check when submitting a question and quiz.

Send in totalQuestions along with quiz

Make sure we send total-questions as property along with quiz for GET /quizzes and GET /quizzes/:id since it is very useful meta.

It should be serialized as total-questions and should be an Integer always. 0 when no question is associated.

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.