JavaScript Node.js

Node.js TypeScript #3. Explaining the Buffer

This entry is part 3 of 15 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 15 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 15 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 15 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 […]

Express JavaScript

TypeScript Express tutorial #5. MongoDB relationships between documents

This entry is part 5 of 15 in the TypeScript Express tutorial

Today we dive into MongoDB relationships between documents. To do it we use Mongoose and the populate feature. As always, the code that we cover here is available in the express-typescript repository. You’re welcome to give it a star. MongoDB relationships between documents The fact is that MongoDB is a NoSQL database. It means that it […]