A QUICK SUMMARY – FOR THE BUSY ONES
TABLE OF CONTENTS
We’ve decided to share with you the list of tools we’ve used before or use on a daily basis, to make life easier for those who, like us, work with Node.js.
For each tool, you will find a download link and a few tutorials or blog posts to get you started. Plus, a developer’s commentary.
Here we go!
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.
<blockquote><p>For writing tests (on all levels: unit, integration and e2e) I use Mocha.js, which is an equivalent of a similar tool – Jasmine. Both Mocha and Jasmine should be helpful for Ruby developers using RSpec.</p><p>Piotr Sroczkowski / Full-Stack Developer at Brainhub</p></blockquote>
Download Mocha.js from Github.
Best resources to learn Mocha.js:
Chai is a TDD and BDD assertion framework for Node.js which can be paired 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 Chai with its rich plugins (ex. chai-as-promised, chai-subset, chai-things). If we need to test Node.js HTTP servers, we usually use SuperTest (it either makes real requests or simulates them while connected to Express.js).
<blockquote><p>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.</p><p>Piotr Sroczkowski / Full-Stack Developer at Brainhub</p></blockquote>
Download Chai from Github.
Best resources to learn Chai:
<blockquote><p>Sinon.JS is one of the most sophisticated mocking libraries. It distinguishes stub, spy and mock!</p><p>Marcin Dryka / Tech Lead at Brainhub</p></blockquote>
Download Sinon.JS from Github.
Best resources to learn Sinon.JS:
<blockquote><p>We enjoy using Express framework because of its simplicity. You can simply connect it with nodemon and you won’t have to restart the web app each time you make changes to your code. 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).</p><p>Piotr Sroczkowski / Full-Stack Developer at Brainhub</p></blockquote>
Download Express.js from Github.
Best resources to learn Express.js:
You can do debugging, tracking (with built-in tool spy-js) and unit testing (with easy to integrate Karma or Mocha.js).
<blockquote><p>It speeds up everyday work. Gives you a coding assistance and navigation, refactoring, testing and debugging tool.</p><p>Marcin Dryka / Tech Lead at Brainhub</p></blockquote>
Best resources to learn WebStorm IDE:
Passport.js is an authentication middleware for Node.js. It gives you a choice of over 300 different ways of authenticating your app including username and password model, login via Facebook, Google, Twitter etc., and many other. It’s extremely easy to implement with any Express.js app.
<blockquote><p>We use Passport.js with Node.js because it simplifies the authorization stage and lets us enable authentication methods that suit our customers’ needs.</p><p>Piotr Kowalski / Tech Lead at Brainhub</p></blockquote>
Download Passport.js from Github.
Best resources to learn Express.js:
Socket.io is a framework that enables a bi-directional communication in real-time, based on events. It doesn’t matter which device or platform you’re using – it will work great on anything.
The package includes real-time analytics with counters, logs and charts. It’s perfect for chat apps and it’s loved by both big companies such as Microsoft, Zendesk, Trello and small startups.
Download Socket.io from Github
Best resources to learn Socket.io:
<blockquote><p>We use Webpack with Node.js because it makes bundling and serving assets easy and fast. It simplifies deployment and makes development a pleasure.</p><p>Łukasz Pluszczewski / Full Stack Developer at Brainhub</p></blockquote>
Download Webpack from Github
Best resources to learn Webpack:
BlueBird.js is a promise library, that helps you to control your asynchronous code. You can separate with it your code into different files without any problem. It’s a must-have if you care about a quality of your code. As an alternative, you can try the Q.
Download BlueBird.js from Github.
Best resources to learn BlueBird.js:
PM2 is a process manager for Node.js applications. It ‘s simple to use and provides many useful built-in features (like load balancer or watch mode).
<blockquote><p>PM2 monitors whether the application is running properly and reloads it without any downtime. You don’t need to worry about restarting applications after they’ve crashed, PM2 does it for you. I use it in many of projects at Brainhub and I’m a big fan.</p><p>Mariusz Dybciak / Full Stack Developer at Brainhub</p></blockquote>
Download PM2 from Github.
Best resources to learn PM2:
It’s a universal platform for React.js/Node.js applications. It’s brought by WalmartLabs which means that this set of tools had been tested on a huge amount of data. It’s not only a set of best practices, standardized structure and modern technologies – it also includes Electrode Explorer and Electrify.
These tools let you explore all docs and components of your platform as well as visualize in a clear and appealing way the module tree of electrode.io + Webpack project bundles.
Download Electrode.io from Github.
Best resources to learn Electrode.io:
While Meteor.js is great for prototyping apps, it’s good to keep in mind that it might not be the best solution for maintaining the already finished ones.
<blockquote><p>We chose Meteor.js as the development framework for our projects because of the development speed achieved by sharing the common codebase between front- and back-end of the application, and by providing a ready-to-use solution for handling real-time communication between the UI and the server.</p><p>Leszek Knoll / CEO at Brainhub</p></blockquote>
Download MeteorJS from Github.
Best resources to learn Meteor.js:
A great alternative for those who use Angular.js is Vue.js . If you don’t want to build a complex web app and have to configure routings, controllers and services then Vue.js could be the lightweight solution you’re looking for.
This framework is focused on a ViewModel – you get features of larger frameworks in a lighter version for your single page applications.
Download Vue.js from Github.
Best resources to learn Vue.js:
Download MEAN.JS from Github.
Best resources to learn MEAN.JS:
<blockquote><p>Babel is a transpiler from es6/es7 to es5. I use it because no popular JS engine gives you all es6 features (even V8 which is run by Node.js and Chrome). Es6 and es7 features give you much of syntactic sugar that improves code readability. Babel can generate es5 files or run es6 on the fly as well. It can be connected with a lot of other JS tools like Webpack or eslint. </p><p>Piotr Sroczkowski / Full Stack Developer at Brainhub</p></blockquote>
Download Babel from Github.
Best resources to learn Babel:
We hope that this list will make your journey with Node.js development a little bit (if not a lot!) easier.
Subscribe to this handbook to grow your knowledge about Node.js easily. We’ll be adding new awesome chapters soon!
Every year, Brainhub helps 750,000+ founders, leaders and software engineers make smart tech decisions. We earn that trust by openly sharing our insights based on practical software engineering experience.
Full-stack software developer with 17 years of professional experience.
Software development enthusiast with 8 years of professional experience in this industry.
Popular this month
Get smarter in engineering and leadership in less than 60 seconds.
Join 300+ founders and engineering leaders, and get a weekly newsletter that takes our CEO 5-6 hours to prepare.
previous article in this collection
It's the first one.
next article in this collection
It's the last one.