Tagged articles
38 articles
Page 1 of 1
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 30, 2024 · Frontend Development

Implementing Chat History Loading in a WeChat Mini‑Program Using Flex Column‑Reverse and a Koa WebSocket Server

This article explains how to solve the common problem of loading historical chat records in a WeChat mini‑program by using a two‑line CSS flex column‑reverse trick, handling edge cases such as limited data and scroll‑view issues, and provides a complete Koa WebSocket backend implementation with full code examples.

ChatFlexboxKoa
0 likes · 9 min read
Implementing Chat History Loading in a WeChat Mini‑Program Using Flex Column‑Reverse and a Koa WebSocket Server
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 4, 2022 · Frontend Development

Full-Stack Frontend Implementation of a Publishing Platform: Pagination, CRUD, and Vue‑Element‑Plus Integration

This tutorial walks through the front‑end portion of a publishing platform series, demonstrating how to build a Vue 3 and Element‑plus UI with TailwindCSS, implement server‑side pagination via Koa, integrate Axios with proxy and interceptors, and add complete CRUD operations—including create, edit, and delete dialogs—while showcasing the essential code snippets.

CRUDElement PlusKoa
0 likes · 16 min read
Full-Stack Frontend Implementation of a Publishing Platform: Pagination, CRUD, and Vue‑Element‑Plus Integration
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 9, 2022 · Backend Development

Practical Backend Development with Koa and MongoDB for a Frontend Publishing Platform

This tutorial walks through building a full‑stack backend for a frontend publishing platform using Koa2, @koa/router, and MongoDB, covering project initialization, route modularization, controller and service layers, middleware for response handling, environment‑specific configuration, and complete CRUD operations verified with Postman and Mongo shell.

APICRUDKoa
0 likes · 19 min read
Practical Backend Development with Koa and MongoDB for a Frontend Publishing Platform
Ctrip Technology
Ctrip Technology
Jun 24, 2022 · Backend Development

Best Practices and Lessons Learned from Implementing GraphQL BFF Services at Ctrip

This article shares Ctrip's experience building GraphQL‑based Backend‑for‑Frontend services, covering the technology stack, data‑graph modeling, error handling with union types, non‑null field usage, performance optimizations, engineering practices such as data‑loader batching, virtual paths, monitoring, and testing.

ApolloBFFError Handling
0 likes · 21 min read
Best Practices and Lessons Learned from Implementing GraphQL BFF Services at Ctrip
DaTaobao Tech
DaTaobao Tech
Apr 21, 2022 · Backend Development

Evolution and Design of Node.js Web Frameworks

Node.js web frameworks have evolved from lightweight tools like Express to enterprise solutions such as Nest and Midway, and now to front‑end‑focused platforms like Next.js, with modern designs emphasizing modularity, type safety, serverless support, and developer‑friendly hooks that bridge front‑end and back‑end development.

ExpressKoaMidway
0 likes · 9 min read
Evolution and Design of Node.js Web Frameworks
TikTok Frontend Technology Team
TikTok Frontend Technology Team
Dec 3, 2021 · Backend Development

Designing a Microservice Node.js Framework Based on Koa

This article explores Koa’s core AOP‑based architecture, demonstrates minimal implementations using koa‑compose and Node.js http, and proposes a microservice‑oriented framework that extends Koa to support HTTP, Thrift, WebSocket and other services, complete with abstract server designs and example code.

KoaMicroservicesNode.js
0 likes · 14 min read
Designing a Microservice Node.js Framework Based on Koa
ByteDance ADFE Team
ByteDance ADFE Team
Jul 30, 2021 · Backend Development

Building a Large File Chunked Upload Library in TypeScript (easy-file-uploader)

This article explains the technical details of large file chunked uploading, walks through designing a custom TypeScript library for both server and client sides, provides step‑by‑step implementation code, and demonstrates a complete Koa‑React demo, offering developers a ready‑to‑use solution for efficient large file transfers.

KoaLarge File UploadNode.js
0 likes · 26 min read
Building a Large File Chunked Upload Library in TypeScript (easy-file-uploader)
Programmer DD
Programmer DD
Jun 21, 2021 · Frontend Development

How to Build a Xiaomi‑Style E‑Commerce Site with Vue and Koa

This article presents a student‑crafted, high‑fidelity Xiaomi Mall clone built with a Vue‑based front‑end (Vue‑router, Vuex, Element‑ui, Axios) and a Node.js Koa back‑end using MySQL, detailing its architecture, key pages, authentication, shopping cart, order processing, and deployment.

KoaVuee‑commerce
0 likes · 5 min read
How to Build a Xiaomi‑Style E‑Commerce Site with Vue and Koa
ELab Team
ELab Team
Apr 7, 2021 · Backend Development

How to Build a Minimal Node.js Server and Master Koa’s Middleware Architecture

This article walks through creating a simple native Node.js HTTP server, applying the Strategy pattern to decouple routes, enforcing the DRY principle with Promises, and then dives deep into Koa’s core source—including its constructor, use, listen, compose, and router modules—to reveal how the framework orchestrates middleware and request handling.

HTTP serverJavaScriptKoa
0 likes · 21 min read
How to Build a Minimal Node.js Server and Master Koa’s Middleware Architecture
Top Architect
Top Architect
Oct 17, 2020 · Backend Development

Guide to Using lowcode-mock for Quick API Mocking with Koa

This article introduces lowcode-mock, a lightweight tool that forwards requests to backend without needing mock definitions or regex matching, explains installation via Yarn, demonstrates creating mock routes with Koa, generating mocks from YAPI or JSON, adding delay, handling HTTP error codes, and configuring proxy forwarding.

API mockingBackend DevelopmentKoa
0 likes · 7 min read
Guide to Using lowcode-mock for Quick API Mocking with Koa
Programmer DD
Programmer DD
Sep 23, 2020 · Backend Development

Quickly Set Up a No‑Mock, Regex‑Free API Proxy with Lowcode‑Mock

This guide shows how to install and run lowcode‑mock, create mock APIs with Koa, generate mock data from YAPI or JSON using the yapi‑code plugin, configure custom mock rules, simulate delays, handle HTTP error codes, and proxy requests to real back‑ends, all without needing regex‑based mocking.

API mockingKoaMock Server
0 likes · 6 min read
Quickly Set Up a No‑Mock, Regex‑Free API Proxy with Lowcode‑Mock
Java Backend Technology
Java Backend Technology
Sep 19, 2020 · Backend Development

Quickly Set Up a Zero‑Config Mock Server with lowcode-mock

This guide introduces lowcode-mock, a zero‑configuration mock server that forwards regex‑matched requests to backend endpoints, covering installation, startup, route creation, generating mocks from YAPI or JSON, adding delays, handling HTTP errors, and proxying requests, all with code examples.

API testingKoaMock Server
0 likes · 7 min read
Quickly Set Up a Zero‑Config Mock Server with lowcode-mock
360 Tech Engineering
360 Tech Engineering
Apr 8, 2020 · Backend Development

Implementing Vue Server-Side Rendering (SSR) with Koa, Docker, and Kubernetes

This technical guide explains how to build a Vue SSR service using Koa, outlines the project benefits and trade‑offs, details the directory structure, server and client entry files, webpack configurations, and describes a Docker‑based CI/CD pipeline with Kubernetes deployment for scalable production environments.

DockerKoaKubernetes
0 likes · 22 min read
Implementing Vue Server-Side Rendering (SSR) with Koa, Docker, and Kubernetes
WecTeam
WecTeam
Dec 19, 2019 · Backend Development

Master TypeScript Migration from Koa2 to Midway: Tame any and Build a Strong Type System

This article shares practical experiences and techniques for migrating a medium‑size Koa2 project to TypeScript with Midway, covering tsconfig settings, the dangers of any, strategies using unknown, strict compiler options, type guards, assertion functions, and how to construct a concise, reusable type system for backend models.

KoaMidwayTypeScript
0 likes · 27 min read
Master TypeScript Migration from Koa2 to Midway: Tame any and Build a Strong Type System
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Nov 26, 2018 · Backend Development

Build Your Own Koa Framework from Scratch: A Step‑by‑Step Guide

This article walks you through creating a lightweight Koa 2 framework by explaining its core modules—application, request, response, and context—showing how to implement the HTTP server wrapper, the onion‑style middleware composition, and robust error handling with code examples for each step.

BackendFrameworkJavaScript
0 likes · 18 min read
Build Your Own Koa Framework from Scratch: A Step‑by‑Step Guide
Hujiang Technology
Hujiang Technology
Apr 2, 2018 · Backend Development

Introducing NestJS and Nesk: Backend Framework Overview and Koa Integration

This article explains the core concepts of NestJS—including modules, controllers, providers, guards, interceptors, and validation pipes—provides practical code examples, and describes how the Nesk fork adapts Nest's architecture to a Koa‑based environment for seamless integration with existing internal frameworks.

Backend DevelopmentGuardsKoa
0 likes · 10 min read
Introducing NestJS and Nesk: Backend Framework Overview and Koa Integration
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jan 16, 2018 · Frontend Development

How Bilibili Scaled Its Frontend: From MVC to Vue SSR and Koa

This article chronicles Bilibili’s front‑end evolution in 2017, detailing the shift from a backend‑centric MVC model to front‑back separation, the adoption of Node middle‑layers, Vue and React SSR, Docker deployment, caching strategies, and subsequent refactoring to improve performance and scalability.

DockerKoaNode.js
0 likes · 15 min read
How Bilibili Scaled Its Frontend: From MVC to Vue SSR and Koa
Architecture Digest
Architecture Digest
Jan 6, 2018 · Backend Development

Comprehensive Guide to Building Web Applications with Koa

This tutorial walks you through setting up a Node.js environment, installing Koa, and progressively building a web application by covering basic HTTP services, context handling, response types, routing, middleware, error handling, cookies, form processing, and file uploads with clear code examples.

Error HandlingKoaNode.js
0 likes · 19 min read
Comprehensive Guide to Building Web Applications with Koa
21CTO
21CTO
Sep 23, 2017 · Backend Development

Why Koa‑Grace Makes Front‑Back End Separation Faster and Simpler

This article explains how the Qudian team built a lightweight Koa‑based front‑back end separation framework called koa‑grace, covering its architecture, routing, data proxying, deployment strategies, performance benchmarks, and open‑source resources for developers seeking efficient web application development.

KoaNode.jsPerformance Testing
0 likes · 14 min read
Why Koa‑Grace Makes Front‑Back End Separation Faster and Simpler
Meituan Technology Team
Meituan Technology Team
Aug 12, 2016 · Backend Development

Automating Data Operation APIs with koa-restql

koa‑restql automatically creates full RESTful CRUD endpoints from Sequelize models, mapping each database table to standard GET, POST, PUT, and DELETE routes, handling query filters, pagination, and associations via query strings, and offering middleware or association‑level options for access control, thus eliminating repetitive data‑operation code in Koa backends.

AutomationKoaNode.js
0 likes · 7 min read
Automating Data Operation APIs with koa-restql
Node Underground
Node Underground
Nov 19, 2015 · Backend Development

Mastering yield* in Koa: How Generators and co Simplify Async Flow

This article demystifies the use of yield* in Koa middleware by comparing plain yield with delegating yield, explaining how the co library handles generators and promises, and outlining the practical advantages of native yield* syntax for clarity, performance, and correct this binding.

AsyncGeneratorsJavaScript
0 likes · 9 min read
Mastering yield* in Koa: How Generators and co Simplify Async Flow