
Research Article
A Study of Web Code Generation Based on ChatGPT
@INPROCEEDINGS{10.4108/eai.21-11-2024.2354633, author={Zhan Shu and Zijie Dong}, title={A Study of Web Code Generation Based on ChatGPT}, proceedings={Proceedings of the 2nd International Conference on Machine Learning and Automation, CONF-MLA 2024, November 21, 2024, Adana, Turkey}, publisher={EAI}, proceedings_a={CONF-MLA}, year={2025}, month={3}, keywords={large language model code generation java web development software development}, doi={10.4108/eai.21-11-2024.2354633} }
- Zhan Shu
Zijie Dong
Year: 2025
A Study of Web Code Generation Based on ChatGPT
CONF-MLA
EAI
DOI: 10.4108/eai.21-11-2024.2354633
Abstract
With the rise of large language models (LLMs) such as ChatGPT in the field of code generation, these models have demonstrated impressive abilities in understanding code semantics and implementing complex functionalities, especially showing potential in web development scenarios. Developing web applications is a critical task widely used in interactive software systems across various fields. However, current automated web code generation still has limitations, often failing to cover complete front-end and back-end functionalities or achieve complex interactive logic. Based on this, this paper takes ChatGPT-4o as an example, constructing a comprehensive student management system to systematically analyze and evaluate its performance and applicability in generating front-end and back-end code. First, the paper outlines the system’s requirements analysis and module design. Then, it thoroughly documents the entire process of generating front-end and back-end code based on ChatGPT-4o. Through this process, the paper examines ChatGPT-4o’s performance in terms of code generation efficiency, functionality accuracy, and the level of human intervention required, analyzing its strengths and limitations with experimental data. The experimental results indicate that large models like ChatGPT significantly simplify code generation and accelerate the development process, yet still require human optimization when handling complex logic and interaction design.