摘 要
随着社会的进步和发展,运动健身作为促进人们健康的有效手段,已经被社会广泛接受。然而只注重运动健身,忽视饮食,同样得不到健康。由于缺乏足够的运动营养学知识,人们在饮食方面一直存在吃什么,怎么吃,吃多少,不会下厨等烦恼,影响了人们对健康的追求.本文在传统菜谱小程序的研究基础之上,结合运动营养学相关理论知识,通过分析用户的身体数据及自身需求,得出用户每天需要摄入的热量,碳水化合物等要素,帮助人们合理制订饮食计划,关注饮食细节。系统采用基于约束的推荐算法,通过与用户的友好交互,为用户推荐既符合个人营养健康标准又满足个人口味的菜谱。为提高用户厨艺水平,系统收集了丰富全面的菜谱,并将其分门别类,方便用户浏览查看。同时,构建一个社区交流平台,将拥有共同兴趣爱好的用户汇集于本平台上,增强用户之间的交流和互动,拓展用户的交际圈。
系统采用Java语言,Tomcat服务器,MySQL数据库等技术,在微信小程序平台上实现了菜谱小程序,从开发者的角度以一款健康饮食微信小程序为实例,简单介绍了其开发过程,并对其主要功能,软件框架,配置与测试进行了简要阐述。该程序有饮食推荐,食物营养介绍,人体需求,互动平台4项主要功能。在阐述完小程序申请开发流程后,以程序中的全局配置文件app.json,来说明开发中各属性代码的具体效果。
关键词:菜谱;健康菜谱;小程序;Java;Mysql
ABSTRACT
With the progress and development of society, sports fitness, as an effective means to promote people's health, has been widely accepted by society. However, only pay attention to exercise fitness, ignore diet, also can not get health. Because of the lack of enough knowledge of sports nutrition, people always have what to eat, how to eat, how much to eat, not to cook and so on, which affects people's pursuit of health. On the basis of the research of traditional menu Mini Programs and the related theoretical knowledge of sports nutrition, this paper analyzes the body data and their own needs of users, and obtains the calories, carbohydrates and other elements that users need to eat every day. Help people make a reasonable diet plan and pay attention to diet details. The system adopts the constraint-based recommendation algorithm, through the friendly interaction with the user, recommends the menu which not only accords with the personal nutrition health standard but also satisfies the personal taste. In order to improve the cooking level of users, the system collects rich and comprehensive recipes, and classifies them to facilitate users to browse and view. At the same time, a community communication platform is constructed, which brings together users with common interests and hobbies to enhance the communication and interaction between users and expand the social circle of users.
The system uses Java language, Tomcat server, MySQL database and other technologies to realize menu Mini Programs on WeChat Mini Program platform. From the developer's point of view, it briefly introduces its development process. Its main functions, software framework, configuration and testing are briefly described. The program has four main functions: diet recommendation, food nutrition introduction, human needs and interactive platform. After explaining the Mini Programs application development process, the global configuration file app.json, in the program is used to explain the specific effect of each attribute code in the development.
Keywords: recipe; healthy recipe; Mini Programs; Java;Mysql
目 录
摘 要
ABSTRACT
1. 绪论
1.1 选题背景及意义
1.2 国内外研究现状概述
1.3 研究的主要内容
2.系统技术
2.1 JavaScript语言
2.2 MINA框架
2.3 Java语言
2.4 数据库
2.5 系统开发环境概述
3.系统分析
3.1 需求概述
3.2 功能描述
3.2.1 用户功能需求
3.2.2 管理员功能需求
3.3 可行性研究
3.3.1 技术可行性
3.3.2 经济可行性
4.系统设计
4.1 系统目标设计
4.2 系统功能分析
4.3 系统功能的模块设计
4.4 数据库的设计
4.4.1 数据库的需求分析
4.4.2 数据库的概念分析
4.4.3 数据库的逻辑设计
4.5 数据库的连接
5.系统实现
5.1 小程序页面的实现
5.1.1小程序端首页
5.1.2小程序端分类
5.1.3详情
5.1.4小程序端评价
5.2 后台网页端的实现
5.2.1登录
5.2.2产品列表页
5.2.3 留言
5.2.4美食管理
5.2.5美食修改
5.2.6类型管理
5.2.7角色管理
5.2.8用户管理
6.系统测试
6.1 测试的目的与目标
6.2 测试方法
6.3 测试用例
6.4 测试结论
总 结
致 谢
参考文献