Giter VIP home page Giter VIP logo

flash-cards's Introduction

flash-cards

A simple flash card and quiz app for learning. Written in HTML/JavaScript. Bootstrap for CSS.

Example Multiple Choice Quiz Card

Example Multiple Choice Quiz Card

Example Quiz Complete

Example Quiz Complete

JSON Schema

The topic is used as the Quiz Title. The language is used to determine the syntax highlighting for the code block. The questions are an array of objects with the question, options, and answer. The options are an array of strings. The answer is the index of the correct option.

If the question contains a code snippet, it will be in the code array. The code array is an array of strings. Each string is a line of code. The code will be syntax highlighted using the language specified in the language field.

{
    "topic": "Python Programming Language",
    "language": "language-python",
    "questions": [
    {
      "question": "Which statement is true about lists and tuples in Python?",
      "options": [
        "Tuples are immutable and lists are mutable",
        "Tuples are mutable and lists are immutable",
        "Tuples are slower than lists",
        "Tuples consume more memory than lists"
      ],
      "answer": 0
    },
    {
      "question": "What is the output of the following Python code: ?",
      "code": ["print('hello' * 3)"],
      "options": ["hello", "hellohellohello", "hello hello hello", "3hello"],
      "answer": 1
    }
  ]
}

AWS Dynamo DB

JSON to DynamoDB

Add AWS dependencies for go:

go get github.com/aws/aws-sdk-go-v2/aws
go get github.com/aws/aws-sdk-go-v2/config
go get github.com/aws/aws-sdk-go-v2/service/dynamodb

Add mux for routing:

go get -u github.com/gorilla/mux

Running the backend locally:

go build
./flash-cards

Requires ~/.aws/credentials file with the following:

[default]
aws_access_key_id=<key id>
aws_secret_access_key=<secret access key>

These are the credentials from an AWS user after creating an access key.

flash-cards's People

Contributors

jimnewpower avatar

Watchers

 avatar

flash-cards's Issues

Add quiz data to database

Quiz data is currently stored in JSON files. Move them to a database. If we want to keep the JSON format, use a JSON-B column type in Postgres?

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.