Best of Node.js — May 2024
- 1
- 2
DEV·2y
The Module System in Javascript
Mastering the module system in JavaScript is crucial for creating scalable, maintainable, and efficient code. Modules help with code organization, reusability, encapsulation, and dependency management. CommonJS is the first module system in Nodejs, and it uses require() and module.exports to import and export modules. The difference between module.exports and exports is that module.exports replaces the entire exports object, while exports is a shorthand reference to module.exports.
- 3
Snyk·2y
10 modern Node.js runtime features to start using in 2024
Explore 10 modern Node.js runtime features to start using in 2024. Includes the Node.js test runner, native mocking, test coverage, watch mode, .env loader, import.meta support, native timers with promises, permissions model, and policy module.
- 4
Community Picks·2y
Prisma, Drizzle, TypeORM or Sequalize — When Your Focus Is Scale, Which One To Choose?
This post discusses the characteristics and strengths of different ORMs in the Node.js ecosystem, including Prisma, Drizzle, TypeORM, and Sequalize. It explores their abilities in terms of query optimization, pagination, join types, nested writes, and bulk inserts. The post concludes that Drizzle is suitable for data-intensive work and complicated scenarios, while TypeORM and Sequalize are recommended for medium complexity cases. Prisma is a good fit for simple CRUD scenarios and full stack teams.
- 5
LogRocket·2y
Building a customizable dashboard with Dashy
Learn how to create a customizable dashboard with Dashy, a free and open source self-hosted dashboard app developed with Vue and Node.js. Dashy allows users to aggregate web service links and widgets into one web page, offering features such as multi-language support, authentication, theme customization, and more. Use cases for Dashy include creating dashboards for home lab servers, managing bookmarks, and storing app and admin page URLs. The article also provides a practical guide on installing and using Dashy via Docker.
- 6
Node.js developers·2y
Building Real-time Applications with Socket.IO and Node.js
Learn how to build real-time applications using Socket.IO and Node.js. Socket.IO enables instant data exchange, cross-platform compatibility, and scalability. Set up a Socket.IO server with Node.js and create a real-time chat application.
- 7
DEV·2y
Unlocking how Socket.io can boost your React app's real-time capabilities
Learn about Socket.io, a JavaScript library that enables real-time communication between client and server using the WebSocket protocol. Explore the differences between HTTP and WebSocket, and discover how to integrate Socket.io in a React Typescript project.
- 8
Community Picks·2y
Publish Your Own NPM Package Easily
Learn how to publish your own NPM package easily. Create an NPM account, choose a unique package name, initialize git repository and NPM in your project, write your code, create an executable script, test your NPM package, and finally, publish it on the NPM registry. Now you can access your tool anywhere in the world!
- 9
Community Picks·2y
CRUD App with Prisma ORM & Node.js
Learn how to create a CRUD App with Prisma ORM and Node.js using TypeScript and PostgreSQL. Prisma is a next-generation ORM tool that simplifies database management and access. Follow the steps to setup a Prisma project, create models, perform database migrations, and perform CRUD operations using Prisma Client.
- 10
Medium·2y
PRISMA 101 : A beginner’s guide to understand prisma.
Prisma is a powerful ORM that enhances the developer experience when working with databases in Node.js and TypeScript. It simplifies database management, provides type-safe queries, automates migrations, and offers a user-friendly interface.
- 11
- 12
AWS Tip·2y
Vitest setup with serverless framework: Node.js Express.js
This post discusses the setup for using Vitest with the Serverless framework for Node.js and Express.js applications. Vitest is presented as a compelling alternative to Jest and Mocha, especially for projects that use TypeScript and modern tooling. It boasts a rich testing ecosystem and features like test coverage and visual test explorers.
- 13
- 14
- 15
- 16