Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| interview:developer:nodejs:start [2019/09/08 18:26] – don.lee | interview:developer:nodejs:start [2025/03/25 14:25] (current) – joe.mao | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Node.js Developer Interview ====== | ====== Node.js Developer Interview ====== | ||
| + | 要求: | ||
| + | * 请于'' | ||
| + | * 在Node.js环境下使用express.js或者koa.js完成即可 | ||
| + | * 只要'' | ||
| + | * 代码可以'' | ||
| + | * 把相关的**.js**文件以及**package.json**文件用**ZIP**(不可用RAR)压缩后作为提交答案 | ||
| + | * 不要把其他脚手架文件如node_modules压缩在內 | ||
| - | 请用 Node.js 加Express或Koa完成此題目。 | + | ===== 目标 ===== |
| - | ^ 时限 | 1小时 | | + | * 提供后台REST API给前端购物车使用 |
| - | ^ 提交方法 | 压缩后电邮代码至 hr@questwork.com | | + | * response格式为JSON |
| - | ===== 购物车外观 | + | ===== REST API ===== |
| + | ^ Method ^ Endpoint ^ Resources ^ | ||
| + | | GET | http:// | ||
| + | | GET | http:// | ||
| + | | GET | http:// | ||
| + | | GET | http:// | ||
| + | | GET | http:// | ||
| + | |||
| + | |||
| + | ===== 购物车外观(仅参考) ===== | ||
| {{: | {{: | ||
| Line 18: | Line 34: | ||
| < | < | ||
| [ | [ | ||
| - | { name: " | + | { id: 1, name: " |
| - | { name: " | + | { id: 2, name: " |
| - | { name: " | + | { id: 3, name: " |
| - | { name: "Coca Cola", category: " | + | { id: 4, name: "Coca Cola", category: " |
| - | { name: " | + | { id: 5, name: " |
| - | { name: " | + | { id: 6, name: " |
| + | { id: 7, name: " | ||
| ] | ] | ||
| </ | </ | ||
| Line 29: | Line 46: | ||
| ===== 评分准则 ===== | ===== 评分准则 ===== | ||
| - | * SFC组件设计 | ||
| * 编码整洁 | * 编码整洁 | ||
| - | * 外覌 | + | * 准时完成 |
| + | * 使用ES6 | ||
| + | * 运行结果达到题目要求 | ||