Using Sequelize with TypeScript
Writing raw SQL in your API is so passé, or at best it’s reserved for really complex queries. These are simpler times for developing, and for most APIs, using one of many object-relational mappers...
View ArticleUsing vue-loader to create single-page applications
Single-page applications are all the rave now. These applications react to users dynamically by changing page content as users interact rather than loading new pages with new data. They have grown in...
View ArticleTesting TypeScript apps using Jest
Testing, testing, 1, 2, 3… Testing is an important aspect of software engineering. During testing, we determine the expectations and test cases for our application and check that they are met....
View ArticleGet faster cache validation with MicroDiff
Speed and performance is an important aspect of any application, and one of the most popular techniques for improving an app’s speed is implementing caching. With caching, we can store an...
View ArticleType assertions vs. type conversions in Go
In this article, we will explore type assertion and type conversion operations in Go using some examples. If you would like to run the snippets as you follow along, you’ll need: To install Go — find a...
View ArticleUnderstanding controllers and routes in NestJS
NestJS is a Node.js web framework built with TypeScript used to build scalable server-side applications. The server side of an application, which does not have UI elements, performs important logic...
View Article18 JavaScript and TypeScript shorthands to know
Editor’s note: This guide to the most useful JavaScript and TypeScript shorthands was last updated on 3 January 2023 to address errors in the code and include information about the satisfies operator...
View ArticleExploring NestJS middleware: Benefits, use cases, and more
Backend developers often apply some common tasks to the requests that our service receives. Some of these tasks are applied before fulfilling the request, like authentication and authorization. Others...
View ArticleUnderstanding the exclamation mark in TypeScript
Editor’s Note: This blog was reviewed for accuracy on 4 April 2023. Since publication, Microsoft released TypeScript v5, which includes the addition of decorators, support for multiple config files in...
View ArticleUsing Protobuf with TypeScript for data serialization
A key part of a distributed system’s architecture is how data is transmitted between its different parts. Data transmission can be done using various methods, including HTTP requests, WebSockets,...
View ArticleHow to use Axios with Vue.js
Editor’s note: This article was last updated by Ibiyemi Adewakun on 11 March 2024 to cover using Axios with the Vue 3 Composition API, as well as advanced Axios configurations and interceptors. Axios...
View ArticleJest adoption guide: Overview, examples, and alternatives
Jest is one of the most popular JavaScript testing libraries used for both unit and integration testing. It supports several JavaScript frameworks, including React, Angular, NestJS, and Express,...
View Article