nodejs

Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code server-side. Historically, JavaScript was used primarily for client-side scripting, in which scripts written in JavaScript are embedded in a webpage’s HTML and run client-side by a JavaScript engine in the user’s web browser. Node.js lets developers use JavaScript for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user’s web browser. Consequently, Node.js represents a “JavaScript everywhere” paradigm, unifying web application development around a single programming language, rather than different languages for server side and client side scripts. - Wikipedia

Version management

  • nvm - Node Version Manager - Simple bash script to manage multiple active node.js versions
  • avn - Automatic Version Switching for Node

Incoming

Executors

  • npx - execute npm package binaries

Dependency Managers - Package managers

File watcher

  • watchify - watch mode for browserify builds

Automation

Websockets

Loggers

TCP/IP

  • turbo-net - Low level TCP library for Node.js

Schedulers

Frameworks

  • nest - A progressive Node.js framework for building efficient and scalable server-side applications on top of TypeScript & JavaScript (ES6 / ES7 / ES8) heavily inspired by Angular :heart_eyes_catrocket: https://nestjs.com/
  • adonis-framework - NodeJs Web Application Framework. Makes it easy for you to write webapps with less code 😃 http://adonisjs.com
  • bigpipe - BigPipe is a radical new modular web pattern for Node.js http://www.bigpipe.io

REST API frameworks

Templating

  • email-templates - 📫 Create, preview, and send custom email templates for Node.js. Highly configurable and supports automatic inline CSS, stylesheets, embedded images and fonts, and much more! https://email-templates.js.org

Testing

  • sinonjs.org - Standalone test spies, stubs and mocks for JavaScript. Works with any unit testing framework.
  • supertest - Super-agent driven library for testing node.js HTTP servers using a fluent API

Config management

CLI - Command line frameworks

Static page generators

Object mapping

Music players

Process managers

  • pm2 - Node.js Production Process Manager with a built-in Load Balancer. http://pm2.io/

Database Migration Tools

E-Commerce

  • cezerin - React and Node.js based e-commerce platform.

Demos

Flux programming

  • nact - Redux for backend

Build systems

  • gulp: Streaming buils system.
  • nexe - 🎉 create a single executable out of your node.js apps

Debugging nodejs in production

Queue management

  • housecall - A promise queue. Simple and sweet.

Performance

Support for ES2015

Browser automation

Yaml parsers

Job scheduling

Load testing

  • artillery - Flexible and powerful toolkit for load and functional testing. Test HTTP, Socket.io, WebSockets and more. Make your systems indestructible! woman_technologist european_castle https://artillery.io

URL shorteners

  • elk-cli - 🌲🌲 Run your URL shortener (à la bit.ly) from the CLI using now

VNC

Microservices

Snippets

Show unhandled erros

1
2
3
4
process.on('unhandledRejection', (reason, p) => {
console.log('Unhandled Rejection at: Promise', p, 'reason:', reason);
// application specific logging, throwing an error, or other logic here
});

Standard nodejs Dockerfile

1
2
3
4
5
6
7
8
9
10
11
12
13
FROM node

MAINTAINER Genar <genar@acs.li>

COPY . /app

WORKDIR /app

RUN yarn install --only=production

ENV NODE_ENV production

ENTRYPOINT ["/app/entrypoint.sh"]

Comments

⬆︎TOP