VitePress Frontend and Backend Documentation

website·Indexed 29 days ago

https://peiyanlu.github.io/vite-press/

A comprehensive technical knowledge base covering frontend development (JavaScript ES6+, Vue, React, CSS BFC, HTML), backend Node.js (Streams, Environment Variables), network protocols (HTTP, HTTPS, OSI Model), and CLI tools (Git, Linux, Windows, NPM, pnpm). Includes interview preparation guides for React, Vue, and NestJS, as well as practical guides on Fetch API, Ajax, and JSON-to-Excel conversion.

Tokens
99.3K
Snippets
567
Records
774
Agent score
74%

What's inside VitePress Knowledge Base

  1. Overview of the MIT License

    The MIT License (also known as the X License or X11 License) is a permissive license. The author retains copyright but imposes minimal restrictions; the primary requirement is that the original license notice must be included in all distributions of the software, whether in binary or source code form.
  2. Overview of the Mozilla Public License (MPL)

    The Mozilla Public License (MPL) was designed by Netscape's Mozilla group in 1998. It was created to provide a better balance between the developers' need for source code and the benefits derived from using that source code, compared to the GPL.
  3. Overview of JavaScript Scope Types

    JavaScript utilizes 9 distinct types of scopes during execution to determine variable accessibility. These include Global, Local (Function), Block, Script, Module, Catch block, With block, Closure, and Eval scopes.
  4. Overview of the BSD License

    The BSD License (including Original BSD and FreeBSD variants) provides significant freedom to users and encourages code sharing while respecting the author's copyright. It is highly friendly to commercial integration as it allows users to modify, redistribute, and develop commercial software based on the code.
  5. Overview of the Apache License

    The Apache License is a free software license released by the Apache Software Foundation, originally written for the Apache HTTP server. It requires licensees to retain copyright and disclaimer notices, though it is not an anti-copyright license.
  6. Overview of the LGPL License

    The GNU Lesser General Public License (LGPL), formerly the GNU Library General Public License, is a more permissive version of the GPL. In terms of flexibility, it is similar to the BSD, Apache, and XFree86 licenses.
  7. Overview of Node.js Stream types

    Node.js provides four primary types of streams via the stream module to handle large data sets, files, and network communications efficiently by processing data in chunks rather than loading it all into memory.
    TypeDescription
    ReadableRead-only streams (e.g., reading files, request bodies)
    WritableWrite-only streams (e.g., writing files, response bodies)
    DuplexBoth readable and writable (e.g., TCP sockets)
    TransformA duplex stream that modifies data (e.g., zlib compression, encryption)
  8. Understand Redux core concepts and data flow

    Redux is a library for managing global application state using a unidirectional data flow. The core cycle is:

    1. The View dispatches an Action (a plain object with a type field describing what happened).
    2. The Store calls the Reducer (a pure function that calculates the new state based on the previous state and the action).
    3. The Store notifies the UI that the state has changed, and the View re-renders based on the new state.
  9. Understand NestJS Core Architecture and Components

    NestJS is a progressive Node.js framework built with TypeScript that uses Express (or optionally Fastify) as its underlying HTTP engine. It emphasizes modularity and maintainability through three primary components:

    • Module: The basic building block used to organize code structure and declare controllers and services.
    • Controller: Handles incoming requests and returns responses, typically mapping to specific routes.
    • Service: Contains business logic and is injected into controllers or other components.
  10. Understand the JavaScript Event Loop mechanism

    The Event Loop is a set of execution rules used by the JS runtime (browser or Node.js) to manage the execution of code. Since JavaScript is single-threaded, it uses a call stack to track function execution. Synchronous tasks are executed sequentially on the main thread. Asynchronous tasks are handed off to external modules (like the browser's WebCore); once completed, their callbacks are placed into task queues to be executed only after the main thread's call stack is empty.