Skip to content

Promptus-Imperii/backend

Repository files navigation

backend

Requirements

  • go >= 1.21.0

Running

Development

  • go run .

Production

  • Uses Nixpacks default set-up in Coolify.

Testing

  • go test

Data

the backend accepts a json schema from the signup page in the following format

{
    "legalfirstnames": "Johannes Hendrikus",
    "member": {
        "firstname": "Jan",
        "infix": "de",
        "lastname": "Vries",
        "phone": "+31612345678"
    },
    "date_of_birth": "2000-10-12T00:00:00Z",
    "address": "Lovensdijkstraat 16",
    "postal_code": "4793RR",
    "city": "Breda",
    "email": "[email protected]",
    "course": "TI",
    "cohort": "2022/2023",
    "emergency_contact": {
        "firstname": "Greetje",
        "infix": "de",
        "lastname": "Vries",
        "phone": "+31687654321"
    },
    "iban": "NL18RABO0123459876",
    "account_holder": "J. H. de Vries"
}

Important

member.firstname is always the name a potential members wishes to be called by. (roepnaam)

it will then validate the phone numbers, postal code and IBAN.

the server returns errors sequentially for each field that is malformatted, and assumes at least some frontend validation has been done

About

the signup form validator and processor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 3

  •  
  •  
  •  

Languages