SchemaToCode
NGX-SCHEMA-TO-CODE

Create a json schema file as specified json schema structure or you can copy sample from [sample json schema] modify it, save in projects root folder.

ng generate ngx-schema-to-code:curd <json-schema-file>

Start the json server api, if you install locally use

npm run api

If you have install json-server globally then use following command

json-server db.json --watch

Now open new terminal, run the angular application and test CURD functionality

ng serve --open

Add record using + add icon and test all functionalities. Once your apis got implemented only change api url in services. We have use id (string) as primary key for entities, you need to change it as per your database / api implemention.

Related Topics:

Installation , Json schema structure