| With the outbreak of COVID-19,the demand for Internet hospitals has been increaseing.It integrates medical resources,expands the service scope of high-quality medical services,accelerates the construction of hospital informatization,and promotes the sharing of medical big data.But the software development process,including the Internet hospital,does not meet the expectations.The efficiency of development is an important problem in development.This paper is mainly aimed at the development efficiency of the front section from the perspective of front-end engineering code automation generation and implementation.This paper mainly focuses on improving the development efficiency in the aspect of automatic code generation.In order to design and implement automatic code generation system,the front-end development process is taken as the breakthrough point.at the Analyzeing and designing system construction part,the system development part and the system deployment part respectively.In the system development part,Yeoman scaffold frame is used to design the scaffold system,and the Internet hospital system is used as the template to realize the system.In the system development part,the HTML cutting diagram transformed into the component process,and the Ajax requested logic are the two content that developers frequently deal with,and the code is automatically generated.The system deployment part is abstracted into automatic deployment script according to the system deployment process and encapsulated in the form of library.In order to make the scheme usable,the Electron interface application framework is used to encapsulate and realize a complete function.In order to prove whether the automatic code generation scheme of this system is feasible,this paper carries out verification through the function test of each module generated according to the scheme and the performance test of the system after the automatic code generation.Through the function test,each code automatic generation scheme can generate the code normally,and the code automatically generated by it can run normally in the system.Through the performance test,compared with the system generated by Create-React-App scaffold,the first packaging time of the automatically generated system is 59.6%shorter and the non-first packaging time is 42.5%shorter when the same development content is included.After the content built in production mode is deployed to the NGINX proxy server,the average time of full page loading is about 1.78s through the page loading test,and the actual loading time felt by users is less than the full loading time,which is within the acceptable range.In addition to poor accessibility,the Lighthouse Performance Analysis tool showed good performance in page performance,best practices,and SEO(search engine optimization).Thus,the automatic code generation scheme proposed in this paper can be used. |