- 构建一个在线英英词典,允许用户查询单词含义。
- 支持用户注册、登录及历史记录查看功能。
- 用户注册和登录
- 单词查询
- 查询历史记录
- 管理员功能:查看所有普通用户的查询记录
- 为英语学习者提供方便、快捷的查询工具,并记录他们的查询历史。
- 客户端-服务器模型。
- 服务器负责查询、身份验证和历史记录管理。
- 客户端提供用户界面和与服务器的通信。
- SQLite
- 用户表:用户ID、用户名、密码(加密)、用户角色。
- 单词表:单词ID、单词、定义。
- 历史查询表:记录ID、用户ID、查询单词、查询时间。
- 命令行界面:菜单选项、输入提示、查询结果显示。
- 根据用户角色显示不同的菜单。
- 密码加密存储。
- 管理员和普通用户的权限区分:仅管理员可以查看所有用户的查询记录。
- 使用socket编程实现客户端与服务器通信。
- 使用多线程或多进程技术实现并发处理。
- 提供用户友好的错误消息。
- 网络异常、数据库错误等情况的处理策略。
- 单元测试:测试每个功能模块。
- 集成测试:测试客户端和服务器的整体交互。
- 在Ubuntu 22.04虚拟机上部署服务器应用。
- 客户端程序可以在多种环境下运行,包括Windows和其他Linux发行版。
For any inquiries, you can contact [email protected].