Hands-On

How to write Express.js middleware with TypeScript

Hands-On

You can extend your Express.js server easily with custom middleware. All you have to do is to write a function that accepts three parameters (req, res, next).

Continue reading →

How to create a screencast

Hands-On

Creating a screencast is harder than it seems. Despite from the idea, you need the right hardware and software to produce high quality content. Especially the post-production is often underestimated. To make your work easier, we would like to give you a few tips on the way.

Continue reading →

Docker Desktop: Hardware assisted virtualization

Hands-On

There are TypeScript projects, such as @nestjsx/crud, which use Docker container images. Docker containers simplify application setups (like databases, caches, etc.) by providing pre-configured images in a virtual environment. Virtualization takes a lot of computing power and can be accelerated by hardware-assisted virtualization.

Continue reading →

Understanding Generators, Iterators and Iterables

Hands-On

A generator function returns a lazy iterator, which generates data only on demand. In the following tutorial, Benny will show you how to code your own generator functions in TypeScript. You will learn the differences between iterators and iterables and how to refactor your code to use generator functions.

Continue reading →

Fastest way to set up a TypeScript project with Node.js (npm)

Hands-On

Setting up a TypeScript project with Node.js takes only a few minutes. Here is how to do it the fastest way by just using npm and yarn.

Continue reading →

Error TS2307: Cannot find module events

Hands-On

Extending the EventEmitter class from Node.js might cause error TS2307. Here is how to fix it.

Continue reading →

Convert to milliseconds

Hands-On

Learn how to get the milliseconds of a specified date in your desired timezone.

Continue reading →

Anatomy of an Electron 4 application

Hands-On

Overview of main concepts in Electron 4 applications.

Continue reading →

Run Node.js apps on Heroku with TypeScript

Hands-On

The best way to get started on the Heroku polyglot platform is to follow their fantastic introduction. It’s also worth reading about their supported environments, deployment tasks and European deployment region. The second best advice is to follow our quick setup guide.

Continue reading →

Parse command line arguments in Node.js

Hands-On

There are many libraries to build CLI tools for Node.js like optimist, minimist, yargs, Caporal.js and commander to name just a few. In the following article Benny gives you an overview of his favorites.

Continue reading →
12