/benchmarking_data_model_angular_test

Formly JSON Schema Angular test with Benchmarking Data Model 2.0

Primary LanguageTypeScriptGNU Affero General Public License v3.0AGPL-3.0

Proof of concept using Formly JSON Schema along with Benchmarking Data Model 2.0

This proof of concept dynamically loads the different benchmarking data model 2.0 schemas, in order to play with Angular Formly. As these JSON Schemas heavily use $ref, and Formly JSON Schema does not support complex mappings of URIs to external JSON Schemas, this proof of concept also uses json-schema-ref-parser.

Fragments from this code are inspired in several examples spread over internet.

Installation instructions

  • Install new enough NodeJS and npm. Tested with NodeJS v14.17.3 and npm 6.14.13 .

  • Clone this repo and change to its directory.

  • Run from the directory:

    npm install

    in order to install all the needed dependencies.

  • Run from the same directory:

    npm run start

    in order to build the project and start the ng dev server at port 4200.

  • Run from the same directory:

    npm run build

    in order to only build the project, which will be available at dist/benchmarking_data_model_angular_test/.