基于分布式架构的PHP技术在微服务领域的电商应用

 2022-08-18 08:08

论文总字数:30697字

摘 要

电子商务是21世纪贸易的发展趋势,电子商务不仅突破了传统贸易往来的现状,更打破了时间和空间所带来的种种的限制,以天猫为首的各大商城正在创造巨大的经济效益。而计算机技术在电子商务的发展历程中占据着举足轻重的地位。

本文首先会介绍电商的发展历程以及其发展现状。

再者,本文将详细介绍开发环境,包括:Linux环境介绍、CI框架介绍、Vue.js介绍。并从项目全局出发,提纲挈领的分析项目的整体结构。

然后,将实现电子商务网站部分网页的功能,提交的成果包括:商品评价页源代码、商品上下架页面源代码、添加编辑商品规格属性源代码、客户列表页源代码、移动端列表页面源代码。其中所涉及到的主要技术点讲在本文中一一列出。

最后提交一份应用程序编程接口文档(apidoc)以及相应的数据字典,并展示个人博客系统,针对所完成的接口进行详尽的解析,已达到共同合作的目的。

关键词:电子商务,计算机技术,环境,源码,接口应用文档

The Application of PHP Technology Based on Distributed Architecture in Micro - service

09013427 刘锦良

Advisor 伍家松

Advisor 袁 亮

Abstract

E-commerce is the development trend of trade in the 21st century, e-commerce not only broke through the status quo of traditional trade, but also broke the time and space brought about by the restrictions to the days of cat-headed major shopping malls are creating huge economic benefits. And computer technology in the development of e-commerce process occupies a pivotal position.
This article will first introduce the development process of electricity providers and their development status.
In addition, this article will detail the development environment, including: Linux environment, CI framework, Vue.js introduced. And from the overall situation of the project, the outline of the analysis of the overall structure of the project.
Then, will realize the function of e-commerce website part of the page, the results included include: product evaluation page source code, goods on the shelf page source code, add edit product specifications attribute source code, customer list page source code, mobile list page source code The main technical aspects involved are listed in this paper.
Finally, submit an application programming interface documentation and the corresponding data dictionary, and display the personal blog system, for the completion of the interface for a detailed analysis, has reached the purpose of co-operation.

KEY WORDS: E – commerce, computer technology, environment,source code, Application Programming Interface

目 录

第一章 绪论 1

1.1引言 1

1.2电子商务发展现状 1

1.2.1. 电子商务体系结构 1

1.2.2 电子商务体系发展现状 2

1.3论文整体设计说明 3

1.3.1主要研究内容 3

1.3.2主要使用技术 3

1.3.3后期维护方法 3

1.3.4主要提交成果 3

1.3.5总结和展望 3

第二章 开发环境 4

2.1 Linux环境介绍 4

2.2.1基本介绍 4

2.2.2常用命令 4

2.2 服务端结构 5

2.2.1 Http请求模型 5

2.2.2项目服务端结构 6

2.3 CI框架介绍 6

2.3.1核心 6

2.3.2提取核心代码 6

2.3.3细枝末节 6

2.3.4黑科技 7

2.4 Vue.js介绍 8

2.4.1安装虚拟机 8

2.4.2配置网络 8

2.4.3配置远程控制器putty 8

2.4.4安装nodejs 8

2.4.5 vue安装及简介 9

2.4.6本地(windows)与虚拟机(Cent-OS)交互 9

2.4.7基于 CentOS 操作系统下对 php 代码调试方案 9

2.5版本控制工具 10

2.5.1 SVN简介 10

2.5.2 GIT简介 11

2.5.3版本控制工具比较 11

第三章 商城各功能页面实现方案 12

3.1 基本实现方法 12

3.2 主要数据格式Json介绍 12

3.3.1简介 12

3.3.2应用 12

3.3.3 XML的应用 12

3.3.4 JSON和JavaScript 12

3.3.5 PHP中的JSON 13

3.3.6类的转换 13

3.3 移动端列表页面 14

3.3.1方案一:PHP Ajax 14

3.3.2方案二:纯Ajax方式 15

3.3.3方案三:本地存储缓存列表 15

3.3.4方案四:优化方案 15

3.3.5方案对比 15

3.3.6常见JS写法问题 16

3.4 商品发布页面 16

3.4.1网页展示 16

3.4.2处理流程 16

3.4.4解决方案一 17

3.4.5解决方案二 17

3.4.6核心技术 19

3.4.7注意事项 20

3.5 客户列表页 20

3.5.1网页展示 20

3.5.2处理流程 20

3.5.3解决方案一 21

3.5.4解决方案二 21

3.6 商品评价列表页 21

3.6.1网页展示 21

3.6.2处理流程 22

3.6.3解决方案 22

3.7 登录注册页面 22

3.7.1网页展示 22

3.7.2处理流程 23

3.7.3解决方案 23

第四章 商城各功能页面后期维护方法 25

4.1 基本维护流程 25

4.1.1针对复杂功能的开发流程 25

4.1.2针对简单bug的开发流程 25

4.2 bug修复 25

4.2.1修复现有的bug 25

4.2.2首次开发新项目 26

4.2.3二次开发 26

4.3 配置多分支的测试环境 27

4.3.1目的 27

4.3.2分支独立需要考虑如下问题 27

4.3.3访问规则配置方案 27

4.3.4方案二实施 28

4.3.5 yungou.ws测试机最终使用 28

4.3.6 apache rewrite 概述 28

第五章 验收文档 30

5.1 高效的合作 30

5.1.1工作中常遇到的情况 30

5.1.2解决方法 30

5.1.3参考做法 30

5.2 程序编程接口文档(API) 30

5.2.1 API文档存在的意义 30

5.2.2在postman中自定义签名 31

5.2数据字典 33

5.2.1基本概念 33

5.2.2存在意义 33

5.2.3基本实例 33

5.3 Geekman 34

5.3.1 基本概念 34

5.3.2 实现方法 34

5.3.3个人博客系统展示 34

第六章 总结和展望 36

6.1结论 36

6.2展望 36

参考文献 37

致 谢 38

第一章 绪论

1.1引言

多年年来,电子商务在中国乃至全球以迅猛的速度发展。一方面,刺激了前所未有的消费需求,为新兴的投资之路打下了坚实的基础,同时也为大众开拓了创业的另一条路,这就在一定程度上缓解了中国的就业压力并解放了生产力;另一方面,电子商务带动了其他行业的发展,在跨行业合作上迈出了重要的一步,同时也促进了服务行业的转型,促进产生新兴业务形态。

2006年,育儿网正式上线,服务于中国年轻家庭(从备孕开始到孩子6岁的家庭)。育儿网主打的APP有:孕期提醒、妈妈社区、育儿网、宝宝来了。我们电商服务团队主要是开发维护妈妈社区APP。

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

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

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