未加星标

15 Best Node.js Tools for Developer

字体大小 | |
[前端(javascript) 所属分类 前端(javascript) | 发布者 店小二03 | 时间 2016 | 作者 红领巾 ] 0人收藏点击收藏

Best Node.js Tools for Developersis our subjective list of the tools we’ve used before or use on a daily basis here at Brainhub. We decided to share our stack and make life easier for those who, like us, work with Node.js.

Node.js is getting huge around the world. It brings javascript, one of the most popular programming languages, on the next level. The great thing about it is that it lets you build an app on theclient and server side at the same time. This means a two-way connection which can be initiated by both client and server as well as communication in real-time. It’s also easy to scale and maintain with lightening fast processing which is why we love to use Node.js at Brainhub !

One Node.js to rule them all!

So here’s 15 Best Node.js Tools for Developers 2016 with comments from our experienced crew. For each tool, you will find a download link and a few tutorials or blog posts to get you started.

Still not convinced about using Node.js? Read more about the famous web apps built with Node.js .

Sharing is caring so feel free to share this article on Twitter if you enjoyed it!

#1 Mocha.js

Mocha.js is a JavaScript test framework based on Node.js. It enables you to test both in console and in the browser. You can use this really fast testing suite to do the unit and integration testing plus it works for TDD (Test-Driven Development) and BDD (Behaviour Driven Development) perfectly. A big advantage of Mocha.js is that it’s modularity so you can easily use other libraries with is, such as Chai, Sinon or Should.js.


15 Best Node.js Tools for Developer
Why do we use Mocha.js with Node.js?

For writing tests (on all levels: unit, integration and e2e) I use Mocha.js, which is an equivalent ofa similar tool Jasmine. Both Mocha and Jasmine should be helpful for Ruby developers using RSpec.

Piotr Sroczkowski / Full-Stack Developer at Brainhub

Download from Github

https://github.com/mochajs/mocha

Best Resources To LearnMocha.js

A Quick Guide to mocha.js Test Driven Development (TDD) in Node.js

Unit Test Your JavaScript Using Mocha and Chai

Getting started with Mocha.js

#2 Chai

Chai is a TDD and BDD assertion framework for Node.js which can bepaired with any testing framework (like Mocha.js we just mentioned). We use Mocha.js to run asynchronous testes, but Chai helps us verify the test results. Chai can be run in a browser or with Node.js.As an assertion tool, we use Chaiwith its rich plugins (ex. chai-as-promised, chai-subset, chai-things). If we need to test Node.js HTTP servers, we usually use SuperTest https://github.com/visionmedia/supertest (it either makes real requests or simulates them while connected to Express.js)


15 Best Node.js Tools for Developer
Why do we use Chai with Node.js?

Chai is an assertion tool which I can use with Mocha.js, for example. I use it in all my tests because of the wide choice of standard assertions and even more in its plugins. It gives me much simpler and more readable tests than using my own assertion helpers or other less popular libraries.

Piotr Sroczkowski / Full-Stack Developer at Brainhub

Download from Github

https://github.com/mochajs/mocha

Best Resources To LearnChai

List of useful plugins for Chai

Tutorial: Test RESTful API with Mocha.js and Chai

Testing Node.js code with Mocha.js and Chai

#3 Sinon.JS

Sinon.js is a standalone testing framework for JavaScript. The great thing about is that it works with any testing framework. It supports stubs, spies and mocks. It also supports most browsers (cross-browser support) and runs on theserver using Node.js.


15 Best Node.js Tools for Developer
Why is Sinon.JS one of our best Node.js tools?

Sinon.JS is one of the most sophisticated mocking libraries. It distinguishes stub, spy and mock!

Marcin Dryka/ Tech Leadat Brainhub

Download from Github

https://github.com/sinonjs/sinon

Best Resources To LearnSinon.JS

Sinon Tutorial: JavaScript Testing with Mocks, Spies & Stubs

Best Practices for Spies, Stubs and Mocks in Sinon.JS

Unit test like a secret agent with Sinon.JS

#4 Express.js

Express.js is a must-use minimalist framework for Node.js web applications . A combination of Node.js and Express.js enables you to build software with JavaScript on the server side. Long story short, you could build a whole website with those two: using Node.js to build server-side part of the app and Express.js to publish the app on yourwebsite.


15 Best Node.js Tools for Developer
Why do we use Express.js with Node.js?

We enjoy using Express framework because of its simplicity. You can simply connect it with nodemon http://nodemon.io/ and you won’t have to restart the web app each time you make changes to yourcode. We were considering using a framework based on Express like Sails.js or Happy.js but we decided it would be an overhead (especially in microservices-oriented architecture).

Piotr Sroczkowski / Full-Stack Developer at Brainhub

Download from Github

https://github.com/expressjs

Best Resources To LearnExpress.js

Express and Nodejs tutorial for beginners

The Dead-Simple Step-by-Step Guide for Front-End Developers to Getting Up andRunning with Node

本文前端(javascript)相关术语:javascript是什么意思 javascript下载 javascript权威指南 javascript基础教程 javascript 正则表达式 javascript设计模式 javascript高级程序设计 精通javascript javascript教程

主题: Node.jsJavaScriptJavaGitRESTRubyTwitter
分页:12
转载请注明
本文标题:15 Best Node.js Tools for Developer
本站链接:http://www.codesec.net/view/479861.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 前端(javascript) | 评论(0) | 阅读(61)