Giter Site home page Giter Site logo

aidankahng / basic-math-leaderboard-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 18 KB

REST-ful API generating arithmetic problems and solutions along with a PostgreSQL db to store question histories

Home Page: https://basic-math-leaderboard-api.onrender.com

Python 96.00% HTML 2.51% Mako 1.49%
flask math postgresql problem-generator rest-api

basic-math-leaderboard-api's Introduction

REST-ful Math Problem Generator

Math problem API created in Python using Flask, SQL Alchemy, and a PostgreSQL database. Webservice and database are hosted on Render.

Public Routes (No auth needed):

[GET] /random

Example JSON Data:

{
    "prompt" : "12 x 7 = ",
    "answer" : "84",
    "value" : 1.3
}

[GET] /practice/mult

HTML webpage with single practice problem of the form "a x b = "

[GET] /practice/add

HTML webpage with single practice problem of the form "a + b = "

[GET] /questions

List of all questions answered so far as a JSON Example: TBD

[GET] /highscores

JSON List of users ordered by total points accumulated Example JSON Data:

[
    {
        "clan": "some-clan",
        "message": "Math is fun!",
        "numQuizzes": 6,
        "points": "89.5",
        "totalAttempted": 75,
        "totalCorrect": 73,
        "totalQuestions": 75,
        "user": "testUser123"
    },
    {
        "clan": "noclan",
        "message": "Why is 0! = 1?",
        "numQuizzes": 3,
        "points": "64.2",
        "totalAttempted": 30,
        "totalCorrect": 24,
        "totalQuestions": 30,
        "user": "anotherUser"
    }, ...
]

[POST] /sign-up

TBD

Protected Routes:

TBD

basic-math-leaderboard-api's People

Contributors

aidankahng avatar

Stargazers

 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.