{"title":"使用类图为Web应用程序和api自动生成基于模板的代码","authors":"Irfan Ullah, Irum Inayat","doi":"10.1109/FIT57066.2022.00067","DOIUrl":null,"url":null,"abstract":"Code generators are used to generate code or simply transform UML artefact into code. Template-based code generation is one of the techniques for generating desired code. In this paper, template-based code generator are reviewed and it is found that they are either limited to UI, CRUD, APIs generation, or specific to languages, patterns or frameworks. They also rely on manually designed lengthy inputs. Therefore, this research presents template-based automatic code generation generator for web applications and APIs using class diagram, which generates CRUD-based business logic, backend UIs, ORM, Routes and APIs. The generator is implemented in python and evaluated through a control experiment. The results recorded immense difference in time between the manually, repetitive coding tasks and through the generator. The generator took less than a minute, while manual development took at average 4 hours.","PeriodicalId":102958,"journal":{"name":"2022 International Conference on Frontiers of Information Technology (FIT)","volume":"64 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Template-based Automatic code generation for Web application and APIs Using Class Diagram\",\"authors\":\"Irfan Ullah, Irum Inayat\",\"doi\":\"10.1109/FIT57066.2022.00067\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Code generators are used to generate code or simply transform UML artefact into code. Template-based code generation is one of the techniques for generating desired code. In this paper, template-based code generator are reviewed and it is found that they are either limited to UI, CRUD, APIs generation, or specific to languages, patterns or frameworks. They also rely on manually designed lengthy inputs. Therefore, this research presents template-based automatic code generation generator for web applications and APIs using class diagram, which generates CRUD-based business logic, backend UIs, ORM, Routes and APIs. The generator is implemented in python and evaluated through a control experiment. The results recorded immense difference in time between the manually, repetitive coding tasks and through the generator. The generator took less than a minute, while manual development took at average 4 hours.\",\"PeriodicalId\":102958,\"journal\":{\"name\":\"2022 International Conference on Frontiers of Information Technology (FIT)\",\"volume\":\"64 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-12-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 International Conference on Frontiers of Information Technology (FIT)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/FIT57066.2022.00067\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 International Conference on Frontiers of Information Technology (FIT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/FIT57066.2022.00067","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Template-based Automatic code generation for Web application and APIs Using Class Diagram
Code generators are used to generate code or simply transform UML artefact into code. Template-based code generation is one of the techniques for generating desired code. In this paper, template-based code generator are reviewed and it is found that they are either limited to UI, CRUD, APIs generation, or specific to languages, patterns or frameworks. They also rely on manually designed lengthy inputs. Therefore, this research presents template-based automatic code generation generator for web applications and APIs using class diagram, which generates CRUD-based business logic, backend UIs, ORM, Routes and APIs. The generator is implemented in python and evaluated through a control experiment. The results recorded immense difference in time between the manually, repetitive coding tasks and through the generator. The generator took less than a minute, while manual development took at average 4 hours.