Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/whxaxes/node-test

Nodejs demo
https://github.com/whxaxes/node-test

bigpipe nodejs pjax spider websockets

Last synced: 13 days ago
JSON representation

Nodejs demo

Awesome Lists containing this project

README

        

# node-test
nodejs test demos

平时写的一些nodejs的小demo,不定时更新:

## 在线预览

- websocket: http://demo.wanghx.cn/wsindex
- 普通上传:http://demo.wanghx.cn/uindex
- 移动端图片上传:http://demo.wanghx.cn/uindex_2
- pjax:http://demo.wanghx.cn/pjax/pjax1.html
- 爬虫:http://demo.wanghx.cn/creeper
- bigpipe:http://demo.wanghx.cn/bigpipe

## 本地

```bash
// 开发
$ npm run dev

// fork
$ npm run start
```

## 文件地址

[co函数简易实现](https://github.com/whxaxes/node-test/blob/master/other/myco.js)

[koa中间件简易实现](https://github.com/whxaxes/node-test/blob/master/other/mykoa.js)

[koa中间件实现_2](https://github.com/whxaxes/node-test/blob/master/other/mykoa_2.js)

[bigpipe测试](https://github.com/whxaxes/node-test/tree/master/server/bigpipe)

[简易爬虫](https://github.com/whxaxes/node-test/tree/master/server/creeper)

[pushState + ajax = pjax](https://github.com/whxaxes/node-test/tree/master/server/pjax)

[图片上传预览及文件上传](https://github.com/whxaxes/node-test/tree/master/server/upload)

[移动端图片压缩上传demo](https://github.com/whxaxes/node-test/tree/master/server/upload/index_2.html)

[websocket实现,数据收发帧解析](https://github.com/whxaxes/node-test/tree/master/server/websocket)