Giter Site home page Giter Site logo

fus7a's Introduction

fus7a ✏️

a nimble quizlet-esque app to pull exercise questions in JSON format and practice! (works in Arabic too!)

Overview

The client side code is written in React. It makes API calls to a JSON url to retrieve question data, which is then rendered.

Users can navigate between questions, see their progress through a lesson, get immediate feedback to their answers, and switch exercises. It sounds like a lot, but it's really simple.

Mix it up

If you want to make your own set of questions, the JSON API spec is roughly as follows:

{
  "instructions": "Answer the math question",
  "hint": "It has something to do with adding",
  "numOfQuestions": 1,
  "questions": [
    {
      "language": "en", // English
      "translation": "none", // Helpful for Arabic!
      "text": "What is 2 + 2?",
      "answerChoices": [
        "4", "3", "22"
      ],
      "answerChoiceResponses": [
        "Correct!", "Incorrect", "Incorrect"
      ],
      "correctAnswer": 0
    }
  ]
}

Hosting

Since right now it's only client-side, I am using CloudFront to serve assets in front of an S3 bucket configured for static site hosting. You could also use something like GitHub pages, if you like.

Notes

I do have some python scripts that take CSV question data, fix any issues with RTL (with Arabic text) and then generate the JSON. They are not open source right now but will be released at a later date.

fus7a's People

Contributors

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