In this article, we are going to create a similar tool to that of Bitly and Cuttly by building an API service that shortens the URLs provided to it. You can see an example of what our program will look like in the GIF below:
The idea is that requests made in the future for frequently accessed data that is stored in a cache can be quickly served up and is usually faster than accessing the data’s primary storage location (usually a database). A cache layer generally provides a more efficient way of reusing previously retrieved or computed data.
In this tutorial, we’ll learn how to build a simple login form with Node.js. The form will require a user to register an account. Then, we’ll use the entered information and store it in a MySQL database before signing the user in.
In this article, we’ll explore microservices, learning how to implement a microservice with Node.js and discussing how microservices are changing the practice of software development. Let’s get started!
In this article, we will write a sample code to read and edit a GIF using canvas-gif for your next Node.js project. Before diving into editing GIFs, make sure you familiarize yourself with creating and saving images with node-canvas.
setTimeout()and other timer APIs in Node.js
Node.js has various inbuilt methods that make managing asynchronous tasks easier compared to other server-side programming languages. The event loop is used to implement the asynchronous functionality of Node.js.
In this tutorial, we’ll create an API with Node.js. Then, we’ll create an authentication system that creates an API key whenever a user registers on the application. With the newly created API key, the user will be able to access all of the routes on the API.
Debugging is one of the most important steps when it comes to developing software. Not only does code testing ensure stability, but it also guarantees quality code and a better user experience.
This tutorial demonstrates how to secure a Node.js web application built with the Express framework by implementing user authentication. You’ll enhance a starter Node.js project to practice the following security concepts:
In this article, we are going to learn what tools we should take advantage of when developing NPM packages. We will start from scratch and create a GitHub Repository to host our package, then we will look into interesting and important topics.
Axios is a very famous HTTP client for browsers and node.js. It is widely popular and well-supported. Axios also provides more features than the Fetch API, like the HTTP interceptors (middlewares) that allow you to modify all requests sent from your application globally.
In this post, we are going to see code examples of the native HTTPS module that comes built-in with your Node.js installation as well as npm packages like Axios, Got, SuperAgent, and node-fetch. Let’s get cracking!
Node.js is well-known for its lightning-fast performance. However, as with any programming language, you might develop Node.js code that performs poorly for your users. Appropriate performance testing is required to combat this.
Async functions are available natively in Node and are denoted by the async keyword in their declaration. They always return a promise, even if you don’t explicitly write them to do so. Also, the await keyword is only available inside async functions at the moment – it cannot be used in the global scope.
REST has reigned for a long time in the world of web services. It’s easy to implement, allows standardization through RESTful patterns, and has lots of libraries that support and facilitate its development. Then came GraphQL, the famous query language for APIs
The internet is huge. Help us find great content!
We design learning experiences that help you grow.