基于laravel框架的新闻发布系统的设计与开发

 2022-01-17 11:01

论文总字数:21174字

目 录

1绪论 1

1.1 引言 1

1.1.1 研究背景 1

1.1.2 研究意义 1

1.2 新闻发布系统的国内外发展现状 2

1.2.1 国外发展现状 2

1.2.2 国内发展现状 3

1.3 本论文研究内容及章节安排 4

1.3.1 本论文研究内容 4

1.3.2 本论文章节安排 4

2网站的相关技术 5

2.1 HTML5技术介绍 5

2.2 Ajax介绍 6

2.3 laravel框架 6

2.4 全文检索 7

2.5 动态页面静态化 7

2.6 反向代理与负载均衡 7

3新闻文章发布系统设计 8

3.1 系统架构设计 8

3.1.1 系统逻辑分析与结构设计 8

3.1.2 服务器的架构设计 8

3.2 功能模块设计 9

3.3 API接口设计 11

3.4 数据库设计 12

4新闻文章发布系统实现 14

4.1 服务器的搭建 14

4.2 前端页面的实现 15

4.3 API接口的实现 19

4.4 后台功能模块的实现 20

4.4.1 新闻信息推送模块的实现 20

4.4.2 后台管理员登录模块的实现 21

4.4.3 新闻管理模块实现 21

4.4.4 用户上传新闻模块实现 21

4.4.5 上传内容审核模块实现 21

5结束语 21

参考文献 23

基于laravel框架的新闻发布系统的设计与开发

徐令

,China

Abstract:In recent years, with the rise and rapid development of the Internet, the amount of information has grown exponentially. People's demand for news and information has also been increasing. Traditional media have become increasingly untenable and have embraced new Internet media. This paper proposes the design and development of the news release system, and conducts inspections and analysis on the basis of the existing system. It aims to design and develop a modern news release system, and discusses the development direction of the news release system. After detailed analysis and comparison of the development status of domestic and foreign news release systems, the traditional manual management method was abandoned, and the dynamic management of news articles was implemented using techniques such as dynamic page statics based on PHP and MySQL. The laravel framework is used to separate and isolate the background view layer from the data model and focus on the business logic. At the same time, this system has compared several news websites such as “Google News” and “Netease News”, and summarized the differences between the “Netease News” website on the issue of multi-device adaptation and other websites and the sources of news content at home and abroad. Using HTML5's new features and the Bootstrap front-end framework to implement a responsive layout of the site, add the "user self-upload news" module. The system is divided into front-end display websites and back-end management systems. The front-end display page is mainly used to display news information to the user, and the user can also independently inquire about the news content and publish the evaluation of the news content. The back-end management system provides the administrator with basic management such as addition and deletion of news.

Key words:News publishing system;Responsive layout;PHP;laravel;

1 绪论

1.1引言

1.1.1研究背景

快速及时地进行新闻查阅,仅仅依赖传统的纸质媒体是远远不够的,许多新闻网站应运而生。传统的新闻网站采用静态信息发布,仅仅是新闻查阅者单方面从网站获取网站信息,无法达到互动的目的[1]。而随着互联网的兴起和发展,静态站点的开发与维护正在变得越来越困难。一方面信息在不断地增加与变化,使得站点维护人员不得不经常修改代码;另一方面由于静态网页不能达到与新闻查阅者有效交互的目的,使得人们感到越来越无趣,从而降低新闻网站的浏览量。

当前的大多数新闻网站采用基于数据库的动态页面来实现文章发布系统。这在一定程度上解决了维护困难的问题。但是,当数据堆积起来后,用户的查阅体验会因访问速度越来越慢而受到极大的影响。因此,使用动态页面静态化技术将动态页面生成对应的静态页面,可以使用户的查阅体验大大提升。

此外,人们的生活节奏正在加快,对新闻资讯的需求已经不仅仅止于重大新闻[2]。越来越多的人对身边发生的小事感兴趣,而传统新闻行业单方面向新闻查阅者传播新闻的模式显然已经不能满足当前人们的需求。当前大多数的新闻应用仅仅依靠自身的新闻内容。而国内虽有一部分新闻应用涉足“全民创作”,但却无法保证新闻信息的真实性和准确性。

因此本文决定采用PHP MySQL开发环境实现一个动态新闻发布系统,并使用动态页面静态化等技术对网站进行优化。与此同时,使用现有WEB技术,开发了一个“用户自主上传新闻”模块,使人人均可参与到新闻的创作中来,并运用大数据采集的敏感词汇作为关键词对用户上传的内容进行过滤,保证用户上传新闻内容的真实性与准确性。

1.1.2研究意义

新闻的网络化发展在相当大的程度上已经代替了传统的传播模式,在新闻的查阅方面给人们带来了全新的体验。但新闻来源的单一使得传统的新闻传播模式已经不能满足人们日益加快的生活节奏。本论文研究的新闻文章发布系统主要侧重于探讨如何利用互联网技术驱动互联网内容的生产。从而使得新闻的查阅与管理有序化、简洁化,让新闻管理者的新闻管理工作更简洁轻松,让新闻查阅者有更好的新闻查阅体验。

在传统媒体纷纷拥抱新媒体,高呼“技术驱动,内容取胜”的今天,研究如何使用技术驱动内容发展,改变新闻传播模式,使之适应人们快节奏的意义不言而喻[3]

1.2新闻发布系统的国内外发展现状

1.2.1国外发展现状

近年来,国外新闻媒体发生了一些引人注目的变化,这些变化反映了国外新闻媒体在新技术环境下图生存求发展所做出的尝试与努力,也是全球新闻媒体行业发展趋势的一种体现。主要体现在以下几个方面:1.移动设备日益成为决定性因素;2.视频业务的爆发;3.虚拟现实技术应用更加广泛;4.科技公司和社交媒体进军新闻业的步伐加快。

从网站的实现技术上分析。通过登录国外的主流新闻网站,本文发现国外“Google News”等主流新闻网站均已摈弃传统的人工管理方式,采用WEB动态页面技术动态生成页面[4]。这使得新闻信息的管理效率比以往使用传统人工管理方式来管理新闻信息时有着很大的提高。以Google News为例的大多数国外新闻网站已实现网站的响应式设计。但几乎看不到虚拟现实技术出现。

在新闻内容的来源上,各大新闻网站均以官方新闻为主,在各大新闻的官方网站上几乎没有个人用户上传新闻的接口。虽然视频业务呈爆发趋势,但目前在国外的主流新闻网站上,视频业务量仍然占比很小。此外,新闻的传播模式固定单一,新闻内容均是从各大新闻网站搬运过来。新闻内容也是以重大新闻为主,无法适应当前人们对新闻资讯“快餐式消费”的节奏[4]

图1.1 google news的新闻首页(桌面版)

剩余内容已隐藏,请支付后下载全文,论文总字数:21174字

相关图片展示:

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;