node

Exploring the Development and Impact of NFT Platforms

Exploring the Development and Impact of NFT Platforms

As a developer passionate about blockchain technology and its applications, I've recently worked on an exciting project in the NFT space. My latest project, Bermuda Unicorn, is a comprehensive NFT marketplace designed to facilitate the creation, buying, and selling of unique digital assets. In this post, I'd like to share a brief case study of my NFT site to illustrate the development process and the impact it's had on the digital collectibles market. Case Study: Bermuda Unicorn NFT Marketplace Bermuda Unicorn is an NFT platform that enables users to mint, trade, and showcase their digital collectibles. The development process involved…
Read More
Redis caching with Mongoose

Redis caching with Mongoose

If you are working with NoSQL databases and use the Mongoose package as an ODM to execute the queries on the database. This article is for you. Why caching? Caching is essential in optimizing performance, improving scalability, and enhancing the user experience of modern applications. It can significantly reduce the load on backend resources such as databases, or APIs. By serving cached data instead of executing resource-intensive operations. How can we apply caching with Mongoose? mongoose object imported from the mongoose package has a powerful other object called Query. We can add to its prototype any customized method. We will…
Read More
The Challenge of Building Web Applications with Node.js Frameworks

The Challenge of Building Web Applications with Node.js Frameworks

In the world of Node.js development, there's no shortage of frameworks available for building web applications. From lightweight frameworks like Koa to full-fledged solutions like Express and NestJS, each offers its own benefits. But as a senior developer working on large-scale production applications, I've come across several limitations that persist across these tools: Boilerplate Code: Even with minimal frameworks, developers still spend too much time setting up basic structure and repeating common patterns. Scaling Complexity: Scaling applications often means piecing together various plugins, libraries, and middlewares, which results in fragmented solutions. Performance Bottlenecks: Many frameworks handle small-to-medium-sized applications well, but…
Read More
‘next build’ not showing uploaded file : Next.js Image

‘next build’ not showing uploaded file : Next.js Image

Rendering Newly Uploaded Files in Next.js on 'next build'In a typical Next.js application, one of the common issues developers face is rendering newly uploaded files after running next build. The default behavior of Next.js during build time is that it bundles static assets and expects them to be available at that point. However, newly uploaded files post-build, such as user-uploaded images, are not automatically detected or rendered. This blog will walk you through a solution using a custom Node.js server to dynamically serve newly uploaded files without having to rebuild the Next.js app every time a new file is added.…
Read More
High performance Node.js static file serving — using Rust

High performance Node.js static file serving — using Rust

A few months ago we released Encore.ts — an Open Source backend framework for TypeScript / Node.js. Since there are already many frameworks out there, we want to share some of the outlier design decisions we've made and how they lead to improved performance and developer experience. Serving static files in Node.js, using Rust for high performance Encore.ts comes with built-in support for serving static assets (such as images, HTML and CSS files, and JavaScript files). This is useful when you want to serve a static website or a single-page application (SPA) that has been pre-compiled into static files. When…
Read More
How to mitigate security issues in GenAI code and LLM integrations

How to mitigate security issues in GenAI code and LLM integrations

GitHub Copilot and other AI coding tools have transformed how we write code and promise a leap in developer productivity. But they also introduce new security risks. If your codebase has existing security issues, AI-generated code can replicate and amplify these vulnerabilities. Research from Stanford University has shown that developers using AI coding tools write significantly less secure code, and this logically increases the likelihood of such developers producing insecure applications. In this article, I’ll share the perspective of a security-minded software developer and examine how AI-generated code, like that from large language models (LLMs), can lead to security flaws.…
Read More
How I Hacked a Company Recruitment Test The Unexpected Tech Adventure of My College Life

How I Hacked a Company Recruitment Test The Unexpected Tech Adventure of My College Life

Ah, college life! The thrill of final year comes with the excitement of job placements. We all know the drill: companies come to campus, conduct aptitude tests, coding challenges, and sometimes, we get to showcase our skills in a high-stakes interview. But what if I told you that one of those tests turned into an unexpected adventure involving a bit of hacking? Buckle up as I share how I turned a routine exam into an impromptu tech experiment—and how it all unfolded. The Recruitment Challenge In our final year, our college arranged several companies to visit for recruitment. Most of…
Read More
How To Use Node JS By Displaying (“Hello World”)

How To Use Node JS By Displaying (“Hello World”)

1. Buka Web Browser Seperti Chrome, Edge atau yang lain 2. Download Node.js pada Web Browser yang anda gunakan atau klik link berikut NodeJS (versi yang direkomendasikan saat ini v20.16.0 (LTS)) 3. Download GitBash untuk terminalnya pada website yang anda gunakan atau klik link berikut GitBash 4. Buka GitBash yang sudah anda download 5. Cek versi node anda (versi yang direkomendasikan saat ini v20.16.0 (LTS)) dengan mengetikkan node -v 6. Buat direktori untuk proyek anda dengan mengetikkan mkdir nama-proyek-anda 7. Masuk ke dalam direktori yang anda buat dengan mengetikkan cd nama-proyek-anda 8. Buat file main.js (nama file sesuai keperluan) menggunakan…
Read More
Practical Guide to Set Up Multiple NodeJS Apps on AWS EC2 Instance with Automatic Deployment using GitHub Actions (Screenshots)

Practical Guide to Set Up Multiple NodeJS Apps on AWS EC2 Instance with Automatic Deployment using GitHub Actions (Screenshots)

Introduction First of all, this is a verrrrrryyyyy loooooooooonnng epistle. Feel free to skim through to get the gist, and then come back again when you need to use it for a project. In this guide, I'll be as detailed as possible guiding you step by step on setting up your EC2 Instance, your code repository up to testing your deployment. Bookmark! Let's go! Setting Up an EC2 Instance on AWS. Navigate to the EC2 dashboard. Click on "Launch Instance" to create a new EC2 instance. Choose an Amazon Machine Image (AMI) (We'll use an Ubuntu Server AMI for this…
Read More
Solving the “Punycode Module is Deprecated” Issue in Node.js

Solving the “Punycode Module is Deprecated” Issue in Node.js

Hi everyone, my name is Asim Khan, and I am currently a full stack developer at Meta Melon. Recently, I encountered a frustrating issue while working on a project for Naseebi.com, a matrimonial mobile and web application. The issue involved the deprecation of the punycode module in Node.js, and I want to share my experience and solution with you. The Issue While working on the profile creation feature in the application, I encountered a 502 Bad Gateway error. After checking my server logs on AWS EC2, I found this warning: The punycode module is deprecated. Please use a userland alternative…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.