/POC-Table-To-React-Dynamic-Forms

Create Dynamic React Form From Table Schema

Primary LanguageJavaScriptMIT LicenseMIT

npm start

  1. files table schema

http://localhost:3200/api/schema/files

[
  {
    "Field": "id",
    "Type": "int(11)",
    "Null": "NO",
    "Key": "PRI",
    "Default": null,
    "Extra": "auto_increment"
  },
  {
    "Field": "name",
    "Type": "varchar(100)",
    "Null": "NO",
    "Key": "",
    "Default": null,
    "Extra": ""
  },
  {
    "Field": "status",
    "Type": "varchar(50)",
    "Null": "NO",
    "Key": "",
    "Default": null,
    "Extra": ""
  },
  {
    "Field": "url",
    "Type": "varchar(200)",
    "Null": "NO",
    "Key": "",
    "Default": null,
    "Extra": ""
  },
  {
    "Field": "size",
    "Type": "decimal(10,0)",
    "Null": "NO",
    "Key": "",
    "Default": null,
    "Extra": ""
  },
  {
    "Field": "modifyTime",
    "Type": "varchar(20)",
    "Null": "NO",
    "Key": "",
    "Default": null,
    "Extra": ""
  },
  {
    "Field": "created_at",
    "Type": "datetime",
    "Null": "NO",
    "Key": "",
    "Default": null,
    "Extra": ""
  },
  {
    "Field": "updated_at",
    "Type": "datetime",
    "Null": "NO",
    "Key": "",
    "Default": null,
    "Extra": ""
  }
]

Form

alt text