Giter VIP home page Giter VIP logo

node-js-best-practise's Introduction

node-js-best-practise

Node.js 教程

Node.js 教程

Node.js 安装配置

Node.js 创建第一个应用

NPM 使用介绍


##Node.js REPL

##Node.js 回调函数

##Node.js 事件循环

##Node.js EventEmitter

##Node.js Buffer

##Node.js Stream

##Node.js 模块系统

##Node.js 函数

##Node.js 路由

##Node.js 全局对象

##Node.js 常用工具

##Node.js 文件系统

##Node.js GET/POST请求

##Node.js 工具模块

##Node.js Web 模块

##Node.js Express 框架

##Node.js RESTful API

##Node.js 多进程

##Node.js JXcore 打包

##Node.js MySQL

##Node.js MongoDB


访问MySQL

http://www.runoob.com/nodejs/nodejs-mysql.html


访问MSSQL

https://github.com/patriksimek/node-mssql


WebStorm基本使用 http://blog.csdn.net/juvary/article/details/51176168



单元测试

安装mocha

cnpm install --global mocha

安装

cnpm install --global chai




代码覆盖率

项目安装mocha

npm install mocha

全局安装istanbul

npm install istanbul -g

将测试文件放到项目根目录的test文件夹下,然后在项目根目录执行下面的脚本:

istanbul cover -hook-run-in-content node_modules/mocha/bin/_mocha

然后,测试结果报告就在coverage\lcov-report子目录生成。

测试报告

项目安装mochawesome

npm install --save-dev mochawesome

运行代码

mocha --reporter mochawesome

然后,测试结果报告就在mochaawesome-reports子目录生成。

node-js-best-practise's People

Contributors

coderdream avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.