JavaScript Node.js

Node.js TypeScript #5. Writable streams, pipes, and the process streams

This entry is part 5 of 14 in the Node.js TypeScript

In this article, we continue covering streams, since they have a significant role in Node.js development. This time we focus on writable streams and pipes. To illustrate how a writable stream works we implement our simple version of a stream writing to a file. We also provide examples of streams appearing in the Node.js environment in the global process object: stdin, […]

JavaScript Node.js

Node.js TypeScript #3. Explaining the Buffer

This entry is part 3 of 14 in the Node.js TypeScript

Today we dive into another essential concept connected to Node.js: buffers. To understand them, we also explain what binary data is and why do we need character encodings. All this information is crucial when diving into other parts of Node.js, such as streams. Node.js TypeScript #3: Buffers The buffer exists in Node.js to help us manipulate binary […]

JavaScript Node.js

Node.js TypeScript #2. The synchronous nature of the EventEmitter

This entry is part 2 of 14 in the Node.js TypeScript

In this article, we continue going through the main concepts connected to Node.js. This time we dive into the idea of the Node.js EventEmitter. We explain its synchronous nature and how it works, which helps with understanding other Node.js features because some of them use the EventEmitter under the hood. Node.js TypeScript: EventEmitter Using events is a […]

Express JavaScript

TypeScript Express tutorial #10. Testing Express applications

This entry is part 10 of 10 in the TypeScript Express tutorial

An essential part of developing a fully functional software is testing. In this article, we focus on making our application more testable and implementing unit and integration tests using Jest and a library called SuperTest. This part of the TypeScript Express testing tutorial needs some basic understanding of tests and the knowledge of tools like […]

Express JavaScript

TypeScript Express tutorial #8. Types of relationships with Postgres and TypeORM

This entry is part 8 of 10 in the TypeScript Express tutorial

Today we continue using Postgres with Express and Typescript. Relationships are an essential part of working with Postgres, and therefore we cover it today. To handle it we use TypeORM. The code for the tutorial is in the express-typescript repository in the postgres branch. Feel free to give it a star. TypeScript Express Postgres Relationships When […]