Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 1.6 KB

README.md

File metadata and controls

36 lines (32 loc) · 1.6 KB

AutoFormValidation

Introduction

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.

Getting Started

How to get a copy of the project and have it running.

Requirement Dependencies

Installation

  1. Clone the repo
    git clone [email protected]:vsseixaso/tcc.git
  2. Install packages
    cd metadata
    yarn
  3. Add database settings

    Add your connection config to the MySQL database in config/db.js

  4. Run
    yarn start

Usage

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