# mynode **Repository Path**: augo/mynode ## Basic Information - **Project Name**: mynode - **Description**: node+bootstrap+muysql - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-07-01 - **Last Updated**: 2021-04-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # eggWsocket ## QuickStart see [egg docs][egg] for more detail. ### Development ```bash $ npm i $ npm run dev $ open http://localhost:7001/ ``` ### Deploy ```bash $ npm start $ npm stop ``` ### npm scripts - Use `npm run lint` to check code style. - Use `npm test` to run unit test. - Use `npm run autod` to auto detect dependencies upgrade, see [autod](https://www.npmjs.com/package/autod) for more detail. ### egg.js npm start 启动报错 开发环境运行项目即npm run dev的时候是正常的,但是npm start会启动失败,最可能的原因是因为npm start启动使用egg-scripts机制启动,对于运行中遇到error日志就会中断进程,方便发现问题,有时构建过程中的node warnning会认为是stderr被捕获到,所以npm start会构建中断,解决方案是忽略掉stderr中断机制,在原来命令基础上添加--ignore-stderr即可 <<<<<<< HEAD ### 本项目 所以模块说明 + crypto-js 加密 + egg-cors 跨域的方法 + egg-router-plus 路由版本控制 + egg-sequelize 安装mysql数据库 + egg-socket.io 即时通讯 websocket + jsonwebtoken 鉴权 ======= [官方文档](https://socket.io/) [阮一峰博客教程 websocket ](http://www.ruanyifeng.com/blog/2017/05/websocket.html) 内有socket 原理讲解 [socket.io官方文档 中文翻译](http://www.shuaihuajun.com/article/1504749640971/) >>>>>>> 07118931308bd1d431b56a9609fd603978209ee6