【文件属性】:
文件名称:translateapp:IEMS5722分配-TranslateApp
文件大小:4.2MB
文件格式:ZIP
更新时间:2021-05-14 20:52:21
Java
介绍
该项目是IEMS5722移动网络编程和分布式服务器体系结构的作业1、2和4,这是香港中文大学的课程之一。
服务器
服务器端是用node.js编写的
开始
要安装依赖项,请运行npm install
$ npm安装
要启动服务器,请运行npm start
$ npm开始
确保$ PATH中有节点,对于Ubuntu,它使用nodejs而不是node,请在启动服务器之前创建符号链接
$ sudo ln -s / usr / bin / nodejs / usr / bin / node
字典
第三部分字典CC-CEDICT用于翻译。
服务器API首先将字典加载到内存中的字典/映射中,并在字典中查询用户请求,然后以JSON格式返回结果。
原料药
[主持人]
翻译
/ translate?word = PARM1
PARM1:该单词需要翻译,UTF-8和URL编码。 不区分大小写,支
【文件预览】:
translateapp-master
----.project(848B)
----project.properties(563B)
----src()
--------com()
----AndroidManifest.xml(1KB)
----res()
--------drawable-hdpi()
--------values-v11()
--------menu()
--------drawable()
--------drawable-mdpi()
--------layout()
--------drawable-xxhdpi()
--------drawable-xhdpi()
--------values-w820dp()
--------values()
--------values-v14()
----.settings()
--------org.eclipse.jdt.core.prefs(658B)
--------org.eclipse.core.runtime.prefs(48B)
--------org.eclipse.core.resources.prefs(57B)
----LICENSE(11KB)
----README.md(3KB)
----libs()
--------android-support-v4.jar(964KB)
----.classpath(475B)
----.gitignore(10B)
----server()
--------main.js(2KB)
--------cedict_1_0_ts_utf-8_mdbg.txt(8.22MB)
--------dictionary.js(2KB)
--------package.json(172B)
----ic_launcher-web.png(50KB)