Skip to content

Instantly share code, notes, and snippets.

@stableShip
Last active March 15, 2018 12:27
Show Gist options
  • Save stableShip/21407cf905844a31ba86bad80b69919b to your computer and use it in GitHub Desktop.
Save stableShip/21407cf905844a31ba86bad80b69919b to your computer and use it in GitHub Desktop.
nodejs入职任务
# nodejs入职任务
`已熟悉的请跳过,要备注`
## 安装基础环境
到 文件服务器下载系统镜像ubuntu系统(或者你有其他经常使用的系统, 如 deepin),下载vmware,安装虚拟机
[ubuntu下载地址](https://www.ubuntu.com/download/desktop)
[deepin下载地址](https://www.deepin.org/download/)
[配置nodejs环境](https://www.cnblogs.com/hf8051/p/4778359.html),下载webstome.
## 熟悉express框架
编写express的 helloworld 程序, 实现get, post 访问得到 “hello world‘。编写一个中间件,记录请求信息。将所有用到的中间件功能编写文档记录。
## 熟悉koa框架
编写koa的 helloworld 程序, 实现get, post 访问得到 “hello world‘。编写一个中间件,记录请求信息。将所有用到的中间件功能编写文档记录。
[参考express](http://www.tutorialspoint.com/nodejs/nodejs_express_framework.htm)
[参考koa](http://koajs.com/)
## 熟悉 lodash
编写相应的使用代码文档,把相应的使用和结果写上就可以了
需要熟悉的方法(可自己扩展): `find, union, each, map, size, filter, min, max, result, zipObject, pluck, extend, ... `(事实上把underscore上有的,lodash上也有的,熟悉一遍)
##单元测试熟悉
[如何编写单元测试](https://www.cnblogs.com/fundebug/p/6594147.html)
使用之前的express?koa 项目,使用`should, supertest, mocha, nock`编写hello world 的get, post单元测试。
将相应的代码写到文档。
## 查看项目文档
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment