Skip to content

strobl-net/gg_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GG Backend

An API Backend for the GG Tools / Apps

How?

The Database stores 2 Tables for Surveys. One Table stores Survey 'Blueprints' which describe the questions, name etc. for a survey. The other Table stores all responses / completed surveys from the users. These Responses have a ID, a USER ID and SURVEY ID. The answers and the blueprints of the questions are stored via Postgres JSONField.

Questions Blueprint:

As described the questions are saved / configured via json. A list of all possible settings will soon be added and a web interface for admins soon after.

Example

[
  ...questions...
    {
        question: "What is your name?",
        description: "we need your name to veryify you",
        type: "text",
        required: True,
        result_type: string
    },
  ...questions...
]

optionally 'optiosn' can be added for mulitplse choice questions or a set of responses.

        options: [
            { name: "John", value: int },
            { name: "Lisa", value: int },
            { name: "Other" value string }
        ],

About

Backend for gg projects [wip]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages