Node.js
Node.js
2022/07/30 (增加連結)
Node.JS
Node入門 (電子書) / The Node Beginner Book
Node.js新手入門
The Basics of JavaScript (node.js)
Performance
Scaling Node.js Applications With Multiprocessing : You might be underutilizing your multi-core server environment without even knowing
How to Handle Multi-Tenant Front-Ends Sharing a Single Database with LaunchDarkly
2 Methods for Effective Server Scaling in Node.js
Scaling your Node.js application by adding more threads
Scaling your applications with Docker & a reverse proxy
Introducing MikroORM, TypeScript data-mapper ORM with Identity Map
You should never ever run directly against Node.js in production. Maybe.
Dependency injection container with hot-reloading in Node.js
Node.js Event Loop, an Awesome concept for Developers : Event loop make Node.js concurrent
My experiences with concurrency while writing an NPM package : How to Use Every Core on your Machine using NodeJS
Using HTTPS for Local Development for React, Angular, and Node
Top Node.js Development Trends in 2021
MEAN & MERN Stack
Real-Time Applications
Internet of Things
Serverless Solution
Cloud Solutions
GraphQL
Microservice
PDF
Task scheduling
How You Can Schedule Tasks in Node: Introduction to cron jobs
Send and Schedule e-mails from a Node.js app
node-mailer & node-cron
Thread
How To Do Multithreading With Node.js : Node.js is capable of doing multithreading with the release of version 13 onwards.
Node.js Tips — Excel Files, Flash Messages, and Response Data
Node.js Tips — Closing Sockets, Writing Responses, and Parsing HTML
Node.js Architecture and Best Practices for Node.js Development
Everything you should know about ‘module’ & ‘require’ in Node.js
How To Secure Your Node.js Applications : Let’s use Helmet, the must-have tool to safeguard your Express.js apps
Logging
Comparing 5 Node.js Logging Libraries for You To Make the Optimal Choice
A Guide To Application Logging (with Pino for node.js)
Logging Solutions for Node.js : Recommended Logging Solutions for your Node.js Application. Comparison for Winston, Pino, Bunyan, Log Level, and npmlog
Memory
The 4 Types of Memory Leaks in Node.js and How to Avoid Them (Part 1) : With the help of Clinic.js
Global resources
Closures
The 4 Types of Memory Leaks in Node.js and How to Avoid Them (Part 2)
Caching
Promises
Dockerize Your Development Environment in VS Code : Containerize your Node.js environment
A Beginner’s Guide to Data Encryption With Node.js
Encrypting data with Node.js
Decrypting data with Node.js
Hashing with Node.js
Exploring the Possibilities of Node’s Virtual Machine Module
JWT
Node 14 New JavaScript Feature Spotlight
Nullish Coalescing
Optional Chaining
Combining Optional Chaining and Nullish Coalescing
Node Modules at War: Why CommonJS and ES Modules Can’t Get Along (Node 14)
Power up your Node.js debugging and error handling with the new Error cause feature (16.9 / 17.3)
Additional promisified APIs
Stack traces with Node.js version
OpenSSL 3.0 support
V8 JavaScript Engine is updated to 9.5
3 Major Features of Node.js 17 : Details of Node.js 17 new features, including OpenSSL 3.0 support and V8 JavaScript engine 9.5 features
NodeJS 18 is HERE! 3 Features that will blow your mind : Stanalone Test Runner, Fetch (Experimental) Support, V8 Engine
Node.js 18 has updated the V8 JavaScript engine to version 10.1
API
Designing API Methods in JavaScript
Named Parameters
Method Chaining / Fluent API
Function Polymorphism
Authentication
Authentication in Node.js, with HTTP Cookies, JWT & BCrypt (part 1)
Authentication in Node.js Adding Validation (part2)
Authentication in Node.js (part 3)
EJS
Google APIs
Pug / Jade
Fastify
REST
Using three of the top NodeJS Web REST API Frameworks: A trip through LoopBack, FeathersJS, and NestJS
Swagger
Typescript
Deno
Build and Dockerize a Blogging API With Deno, Oak, and MySQL
How to Deploy Your First Deno App (Heroku)
Introduction to Deno: A Secure JavaScript & TypeScript Runtime
Aleph
Frameworks / libraries
Top 10 Node.js Frameworks For Web App Development in 2020-21
Express
Koa
Hapi
Meteor
Socket.io
Sails
LoopBack.io
Nest
Total
Adonis
Top 10 JavaScript Frameworks for Server Side Development in 2020
Express
Next.js
Meteor
Koa
Nuxt.js
NestJS
Fastify
LoopBack
Hapi
Restify
Express.js — the fast, un-opinionated, minimalist web framework for Node.js
Koa.js — the next-generation web framework for Node.js
Hapi — the simple, secure framework
Fastify — the fast and low overhead web framework, for Node.js
Restify — the future of Node.js REST development
A Beginner’s Guide to Server-Side Web Development with Node.js
Express
Koa.js
Hapi.js
Top 8 best Node.js frameworks for your perfect project
Express.js
Koa.js
Hapi.js
Express.js extensions
LoopBack
Sails.js
Kraken.js
Meteor
Electron.js
Top 5 Node.js Frameworks to Increase Coding Productivity
If you ask me, if I am in urgency and need a production grade code — Sails.js is my option. When I am working on custom-built solutions with Node, express is my choice.
Express.js
Meteor.js
Koa.js
Sails.js
Loopback.js
Choose the Best JavaScript Framework for Your Server-Side Development
Express.js
Express is a minimal and flexible Node.js web application framework that provides a robust set of features to develop web and mobile applications.
Next.js
Next.js was created as an end-to-end server-side rendering framework based on React.
Nuxt.js
Nuxt is mostly used to build server-side rendered apps. Nuxt is known as an enhancer for Vue, but it cannot act as a substitute for Vue since it cannot function alone.
Gatsby.js
Gatsby is a modern, flexible React and GraphQl based Static Site Generator.
10 Node.js Frameworks Worth Checking Out: Express, Loopback, Hapi, and Beyond
Express
Creating a RESTful Web API with Node.js and Express.js from scratch
Backend Development: an Introduction for Frontend Developers : First Steps in Node.js and Express.js
How to Build and Deploy a Full-Stack React-App: Complement your React-app with Express.js and DynamoDB
Building a Full Stack Application with React and Node (with Express, React and Postgres)
Express will dominate the coming decade. Here’s why.: With the stable release completing its seventh month, Express.js comes from humble beginnings, and it will rise to challenge the kings of old.
Set up an Express.Js App With Passport.Js and Mongodb for Password Authentication
Security Best Practices for Using Express Apps in Production
How I made my own YouTube Downloader : Developed using JavaScript and Node.js (with express, ytdl-core and cors )
I built the same API with & without Express. Here are the differences.
The pure Node.js implementation of the server, completely without a framework like Express.js is much faster.
Create your First REST API with Node.js, Express and MongoDB
JWT
Node.js + Express Tutorial for 2021 — Build a Web Server Using Node.js and Express
Node + Express 完全新手教學
Typescript
NestJS
Implementing a sane backend in Node.js using NestJS, Part I: Architecture
Implementing a sane backend in Node.js using NestJS, Part II: Project setup and structure
Databases
mysql
firebase / firestore
airtable
Getting Started with the Airtable API
Node.js + express + Pug
React
Build An Amazing Application Using React and Node together: Understand how to create Rest API’s in Node.js and access it in React and store the result in Redux
Let’s build a FullStack App with JavaScript! ~ Episode 1
Intro, Setup, and Dependencies
Let’s build a FullStack App with JavaScript! ~ Episode 2
Express.js
Let’s build a FullStack App with JavaScript! ~ Episode 3
Table design
Let’s build a FullStack App with JavaScript! ~ Episode 4
Knex.js + SQLite
React — How To Proxy To Backend Server
文後的回應說package.json裡的proxy已經不能使用,只能利用 setupProxy.js,不過,目前還沒看到有同樣的說法。(2020/10/05)
How To Integrate Cloud Services for Image Upload in a Node.js + React Web App
Create a Full Stack Banking Application using React
MERN
A Head-To-Head Stand-Off Between MEAN & MERN
MEAN: MongoDB, Express, Angular, Node
MERN: MongoDB, Express, React, Node
Since both are open source and use almost the same technology combination, it all comes down to our decision on whether to opt for Angular or React.
(更完整的內容請參考: MEAN vs. MERN – What’s the Difference?)
Let’s build a full stack MongoDB, React, Node and Express (MERN) app
How to create your first MERN (MongoDB, Express JS, React JS and Node JS) Stack
Create your first React application with express and mongodb
A Complete Guide to Build a Well Structured 3-tier Architecture in 2020 with MERN Stack — ES6 (part 1)
Built a simple/good structured SERVER App with NodeJS/ExpressJS/MongoDB
The Perfect Structure to Authenticate & Authorize Your API with Node.js
I built a M.E.R.N codebase in an hour (part 2)
What You Will Learn
Front-end: React.js, Redux-thunk, React-router, LocalStorage, Axios
Back-end: Node.js, Express.js, MongoDB, Postman
A Complete Guide To Deploying Your Web App To Amazon Web Service
Part 1 — Prep App for Deployment
Part 2 — Deploy Docker Image to AWS ECS
Part 3 — Persisting Data
Sock.io
How Real-Time Communication in Web Development Made : Developed Using Socket.io & Node.js
React Native
Test
Node.js & JavaScript Testing Best Practices (2019)
The Golden Rule: Testing must stay dead -simple and clear as day
The Test Anatomy
Include 3 parts in each test name
What is being tested?
Under what circumstances and scenario?
What is the expected result?
Describe expectations in a product language: use BDD-style assertions
Lint with testing-dedicated plugins
Stick to black-box testing: Test only public methods
Choose the right test doubles: Avoid mocks in favor of stubs and spies
Don’t “foo”, use realistic input data
Test many input combinations using Property-based testing
Stay within the test: Minimize external helpers and abstractions
Avoid global test fixtures and seeds, add data per-test
Don’t catch errors, expect them
Tag your tests
Other generic good testing hygiene
Test Types
Enrich your testing portfolio: Look beyond unit tests and the pyramid
Component testing might be your best affair
Ensure new releases don’t break the API using consumer-driven contracts
Test your middlewares in isolation
Measure and refactor using static analysis tools
Check your readiness for Node-related chaos
Measuring Test Effectiveness
Get enough coverage for being confident, ~80% seems to be the lucky number
Inspect coverage reports to detect untested areas and other oddities
Measure logical coverage using mutation testing
CI & Other Quality Measures
Enrich your linters and abort builds that have linting issues
Shorten the feedback loop with local developer-CI
Perform e2e testing over a true production-mirror
Parallelize test execution
Stay away from legal issues using license and plagiarism check
Constantly inspect for vulnerable dependencies
Automate dependency updates
Other, non-Node related, CI tips
Build matrix: Run the same CI steps using multiple Node versions
How To Create a Web App for Coding Tests: How to build your very own coding test platform with Node.js
Increase Your Productivity With Automated Browser Tests Using Node and Playwright
Passing variables between tests in Cypress : Testing business workflows end2end with cy.task()
Tips & Experiences
How I Automated My Job with Node.js : Increase Performance by Automating the Repetitive Tasks
passport.js
Learn how to handle authentication with Node using Passport.js
Build a Login System in Node.js : How to use Passport.js for user authentication in your node app
Javascript Templating Language and Engine— Mustache.js with Node and Express
Why Everyone is Talking About Isomorphic / Universal JavaScript and Why it Matters
Nodemailer
Password Reset Emails In Your React App Made Easy with Nodemailer
React + node.js + nodemailer
How To Make Contact Forms for Your Website Using Nodemailer : Use the powerful Node.js module without enabling less secure apps on your Gmail account
File
Node.js FS Module — Changing Ownership and Copying Files
Changing File Ownership with the fs.chown and fs.chownSync Functions
Copy Files with fs.copyFile and fs.copyFileSync
A Memory-Friendly Way of Reading Files in Node.js
Both fs.createReadStream and fs.read can lower memory usage while reading files in Node.js.
The differences between fs.createReadStream and fs.read are accentuated when the chunk size increases. Memory usage is about ten times lower for fs.read
How to deploy a create-react-app with an Express backend to Heroku
GraphQL
Web Scraping
How to Build a Web Scraper using JavaScript
Asynchronous Code
Static Websites
Dynamic Websites
Anonymous Web Scraping with Node.js, Tor, Puppeteer and cheerio
Web scraping with JavaScript and Node.js : with scraper.js