Last updated: 12.02.2025
Example of a HTML form generated from a JSON file via JavaScript in browser. Form is validated using the same JSON Schema both in browser and on the server (Node.js). Upon successful submission of form a serverless function writes data to a MongoDB instance and displays data in browser.
This version of demo uses Handlebars to generate HTML from JSON via this template. A React version is available here.
Code available on GitHub. Uses handlebars.js and ajv.js libraries.
Log of data in database as returned by endpoint "api/profile":