基于 node 的微博 的设计与实现 d esign and implementation of microblog based on node 摘要千禧年后, Twitter 开始进入中国,引发了一代新流行。紧接着微博就凭借它的立即互动特性快速成为新兴的大众信息交流平台。随着微博的热潮,人们由以前的传统媒体纯获取信息的身份转换为信息的发布者和获取者,在传统媒体时期,大多是人民群众只能是被动的获取信息,可以说微博的兴起是人民发声的一大转折点。微博系统作为新媒体的代表,自然也需要先进的解决思路和方案,本文结合当今中小型企业中广泛使用的技术以及实际应用,设计并实现了一个基于 Node.js 的微博系统。我的毕业设计主要做到了微博的基础和特色功能,比如常规的发布微博、上传图片、回复微博、关注感兴趣的用户、@他人来提醒别人看微博,等等。在系统的后台主要采用了 koa2 的框架进行开发,在数据库上选择了目前中小型企业中使用最广的关系型数据库 mysql,使用 session 完成登录,在前端页面上使用 EJS 后端模板引擎结合 CSS,此外还使用了 Redis作为缓存数据库。基于 node.js 的微博系统具有轻量型且易部署的特点,该系统适合于想要推出自己的微博网站的用户进行使用。本文的主要工作包括:简单的介绍微博的背景和意义以及微博的发展现状以及所使用的相关技术,对系统进行需求分析并根据架构设计进行基于 Node.js 的微博系统的编码实现和测试。关键词:微博系统 Node.js koa2 mysql session EJS RedisAbstractAfter the millennium, Twitter began to enter China, triggering a new generation of popularity.Then weibo quickly became an emerging public information exchange platform with its immediate interactive characteristics.With the upsurge of micro-blog, people have changed from the previous status of pure information acquisition by traditional media to that of information publisher and acquirer. In the period of traditional media, most people can only passively obtain information. It can be said that the rise of micro-blog is a turning point for people to make their voices heard.As a representative of new media, microblog system naturally also needs advanced solutions and s...