AutoFormValidation makes form validation dynamic and generic by consuming the metadata of the columns of a table in the MySQL Database. The solution development report can be found here.
How to get a copy of the project and have it running.
- Node.js - v12.x.x
- MySQL - v8.x.x
- Package.json [metadata]
- Package.json [example/crud]
- Clone the repo
git clone [email protected]:vsseixaso/tcc.git
- Install packages
cd metadata yarn
- Add database settings
Add your connection config to the MySQL database in config/db.js
- Run
yarn start
This project contains a suggested usage for the API in the example folder.
- In metadata the application calls the API
- In validateField the form fields are validated. In the future this will be in a js library for use and increment
- In the form the fields make use of the validateField