Metadev-client-example is an example project which uses the Metadev client framework. The goal of the framework is to reduce the code written for frontend development. The framework is best suited for ERP apps which have a ton of forms.
Metadev is an abbreviation for Metadata-Driven development.
The project is built using Typescript and Angular. Also the framework uses Material Design Components.
Metadev-Server-Example generates the models using simple JSON files (e.g - customer-from). These generated models are copied into to the project folder. Generating these models helps engineers/developers to spend more time on the design rather than the syntax. Also, anyone who does not have any prior experience with typescript will be able to generate models in no-time. The framework uses these generated models to render the forms. The generated files can be found here.
The metadev-client framework is built into the project for this version and can be found here.
In the next version the framework-modules
folder will be packaged and moved into a entirely new project.
This code displays the Metadev Angular component, which generates the form based on the JSON files provided.
The Code
<app-mv-field-generator [formData]="fd"></app-mv-field-generator>
-
Installing Angular
Follow Angular Installation Guide.
-
Build and Run project
- Open Terminal.
- CD to project directory.
- Run -
npm install --legacy-peer-deps
ng serve
- Open http://localhost:4200/.
-
Installing Docker
Follow docker docs to install docker.
-
Build and Run Docker Container
- Open Terminal.
- CD to project directory.
- Run the following commands -
docker build -t metadev-client .
docker run --rm -it -p 8080:4200 metadev-client
- Open http://localhost:8080/.