IJMECS Vol. 9, No. 11, 8 Nov. 2017
Cover page and Table of Contents: PDF (size: 582KB)
Full Text (PDF, 582KB), PP.1-12
Views: 0 Downloads: 0
Web application, Code generation, JSON, Routing, Configuration
A dynamic web application tends to have many sorts of routine code which are essentially common in most dynamic web applications.
By the routing for a web application we mean mapping URLs (requests) to actions (responses) of the application. In this paper, we show that by configuring the routing for a web application together with preparing static libraries and modifying dynamic templates to generate the modules which are needed by the application, we can generate most of the routine code necessary for the application. Configurations for the routing and other settings for an application are written uniformly in JSON format. Then, reading the JSON configurations our scripts set up static libraries and generate necessary modules from templates and write files which conduct the routing.
Our system sets up everything you need to run a web application from the web directories for the application and the basic libraries to the modules for the application and the files for routing. You can add another web application to the web setting for the web application you have generated.
To show by example the applicability of our web code generating system we first construct a book request page with a very little configuration on the application. Next as a more complicated example, we apply our system to a web application which involves a specific function i.e. reading a marksheet for which the system cannot generate code, showing how the system can generate a web application which utilizes the code not generated by the system.
Kazuaki Kajitori, "Generating Code for Simple Dynamic Web Applications via Routing Configurations", International Journal of Modern Education and Computer Science(IJMECS), Vol.9, No.11, pp. 1-12, 2017. DOI:10.5815/ijmecs.2017.11.01
[1]K.Kajitori, K. Aoki, S. Ito, Developing a Compact and Practical Online Quiz System, International Journal of Modern Education and Computer Science(IJMECS), Vol.6, No.9, 1-7 (2014).
[2]K.Kajitori, K. Aoki, Implementation of a Simple Document Repository System, International Journal of Modern Education and Computer Science(IJMECS), Vol.8, No.9, 12-19 (2016).
[3]Schwabe, D., Rossi, G., Esmeraldo, L., Lyardet, F., Web design frameworks: An approach to improve reuse in web applications, Web Engineering pp.335-352 (2001).
[4]Nitish Pathak, Girish Sharma, B.M.Singh, Experimental Analysis of SPF Based Secure Web Application, International Journal of Modern Education and Computer Science(IJMECS), Vol.7, No.2, 48-55 (2015).
[5]Radošević, Danijel, and Ivan Magdalenić, Source code generator based on dynamic frames. Journal of Information and Organizational Sciences, 2011.
[6]Radošević, Danijel, and Ivan Magdalenić. "Python implementation of source code generator based on dynamic frames." MIPRO, 2011 Proceedings of the 34th International Convention. IEEE, 2011.
[7]Kvesić, A., Radošević, D., Orehovački, T.:"Dynamic Frames Based Generation of 3D Scenes and Applications", Acta Graphica, ISSN: 0353-4707, 26(1-2), 11-19, 2015.
[8]Mansurov, N. and Ragozin, A. Using declarative mappings for automatic code generation from {SDL} and asn.1. In Lahav, R. D. v. B., editor, {SDL} '99, pages 275 – 290. Elsevier Science B.V., Amsterdam, 1999.
[9]Martin Kaufleitner, Code Generation from Configuration Specification Languages -For Program Execution Environment Configuration-, Seminar aus Programmiersprachen, May 6, 2016.
[10]JSON, http://www.json.org
[11]jq, https://stedolan.github.io/jq/.
[12]Mohammed Ali, Tarek S. Sobh,*, Salwa El-Gamal, Identity Management: Lightweight SAML for Less Processing Power, International Journal of Information Technology and Computer Science(IJITCS), Vol.7, No.4, pp.42-49, 2015
[13]Amira Abdelatey, Mohamed Elkawkagy, Ashraf Elsisi, Arabi Keshk, "Improving Matching Web Service Security Policy Based on Semantics ", International Journal of Information Technology and Computer Science(IJITCS), Vol.8, No.12, pp.67-74, 2016.
[14]N. Kaur, H. Aggarwal,"Evaluation of Information Retrieval Based Ontology Development Editors for Semantic Web", International Journal of Modern Education and Computer Science (IJMECS), Vol.9, No.7, pp.63-73, 2017.