Node.js Web Server in Practice: File Upload
Preface: File upload is an essential capability in server-side development. In Node.js web server development, you can use formidable to implement file upload.
Type to start searching
Preface: File upload is an essential capability in server-side development. In Node.js web server development, you can use formidable to implement file upload.
Preface: Scheduled tasks are an essential capability in server-side development. In Node.js web server development, you can use cron to implement scheduled tasks.
Preface: Local logging is an essential capability in server-side development. In Node.js web server development, you can use log4js to implement local logging.
Preface This article introduces how to submit standardized commit messages. For the specification, see: https://www.conventionalcommits.org/en/v1.0.0/ commitizen You can manually submit commit messages that follow the spec, like
Preface In Electron development, crash reporting is inevitable. Electron provides crashReporter for reporting crashes, https://www.electronjs.org/docs/latest/api/crash-reporter. The underlying crash handling uses crashpad.
TL;DR: An app for converting PNG to icns on Mac has been created — feel free to use it: https://electron-icns.com/. Preface: When packaging an Electron app as a Mac application bundle, using electron-packager as an example, the default app icon after packaging looks like the Electron logo.
Building a Node.js web server from scratch — covering HTTP module, URL parsing, query, headers, cookies, useragent, body parsing, file upload, CORS, redirect, and the qiao-z framework.
Preface: How to determine if a user is online — not just whether the network is connected. Online means connected to the internet; connected means on a network but without internet access. This article covers detection methods for both Node.js and browser environments.
Preface Some common methods for local data storage include Cookie, LocalStorage, IndexedDB, SQLite, etc. Here is a brief comparison. Cookie Storage size: 4k. Set expiration: Yes. Server-side access: Yes. Feature: Simple data storage. LocalStorage Storage size: 5M. Set expiration: No. Server-side access: No.
Preface: The powerful vitality of JavaScript has expanded frontend development into many areas — web development with JS/HTML/CSS, server-side development with Node.js, desktop development with Chromium and Node.js, and mobile development with WebView.
Introduction: IndexedDB is a database that can be used directly on the web. This article covers IndexedDB basics, comparison with LocalStorage, database and table operations, data CRUD operations, the qiao.db.js utility, and building a todolist with IndexedDB.
Preface This article walks through building a todolist based on the following tech stack: React for UI, https://reactjs.org/ webpack for building the frontend project, https://webpack.js.org/ localStorage for data storage, https://developer.mozilla.