Node.js在高职就业网站开发中的应用
2021-03-13朱克武



摘 要:学生就业网站的开发,给企业、学生提供一个供需双方交流的平台。在服务器端,通过搭建Node.js的Express服务器框架,创建MySql数据库对象,通过路由设计,实现服务器端的各项操作。在客户端,运用HTML5、JavaScript、Ajax等技术,实现网站的前后端分离设计。在开发过程中,结合chrome的开发者工具、postman测试软件,快速开发就业网站项目,该项目的实施为学生就业拓宽了渠道。
关键词:Express;MySql;开发者工具;postman
中图分类号:TP311;TN820 文献标识码:A文章编号:2096-4706(2021)15-0019-04
Abstract: The development of student employment website provides a platform for enterprises and students to communicate between supply and demand. On the server side, the Express server framework of Node.js is built, MySql database is created, and various operations on the server side are realized by route design. In the client, HTML5, JavaScript, Ajax and other technologies are used to realize the separation of the front and back ends of the website design. In the development process, the developer tools of chrome and postman testing software are combined to rapidly develop the employment website project. The implementation of this project expands the channels for students to obtain employment.
Keywords: Express; MySql; developer tools; postman
0 引 言
网站服务器端开发所用语言有Java Web、ASP.NET、PHP等开发语言,目前绝大多数网站开发都使用这些技术。网站开发离不开JavaScript,Node.js是让JavaScript运行在服务器端的开发平台,可以安装很多第三方插件,非常适合各类项目的开发,包括服务器端网站的开发。本项目开发的目的是给高职学生提供一个就业的平台,通过该网站,企业和学生有一个交流的平台,能够相互了解,互动交流,企业和学生各取所需,为学生提供一个就业的机会。
1 MySQl数据库
MySQl是一个多线程的SQL数据库服务器,执行性能高,运行速度快,并且容易使用,在中小型网站上普遍使用。使用Navicat操作MySQl数据库,该软件使用图形界面操作数据库、数据表、视图、查询语句。创建的数据表包括用户表(用来保存企业、学生、管理员的信息)、学生的基本信息表、学生各个学期的成绩表、学生各个学期的评价表、企业的基本信息表、企业的招聘信息表。这6张数据表能够满足网站的基本需求。在网站运行过程中,可以根据需要,补充一些数据表。
网站管理的核心是管理员收集学生资料、企业资料,将这些数据添加到对应的数据表中。……
