Tag

Koa

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 7, 2025 · Backend Development

Getting Started with Koa: A Lightweight Node.js Framework for Building HTTP Servers

This article introduces native Node.js HTTP server creation, explains request and response concepts, and then demonstrates how to use the Koa framework—including installation, middleware, routing, body parsing, and the onion model—to build clean, maintainable backend services.

HTTPJavaScriptKoa
0 likes · 11 min read
Getting Started with Koa: A Lightweight Node.js Framework for Building HTTP Servers
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.

AOPKoaMicroservices
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.

Chunked UploadKoaNode.js
0 likes · 26 min read
Building a Large File Chunked Upload Library in TypeScript (easy-file-uploader)
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
New Oriental Technology
New Oriental Technology
Sep 21, 2020 · Frontend Development

Understanding CORS (Cross-Origin Resource Sharing) and How to Configure It with Koa

This article explains the concept of Cross-Origin Resource Sharing (CORS), the same‑origin policy, how simple and preflight requests work, and demonstrates configuring a Koa server and client‑side settings—including credentials and header handling—to enable secure cross‑origin communication.

CORSCross-OriginKoa
0 likes · 6 min read
Understanding CORS (Cross-Origin Resource Sharing) and How to Configure It with Koa
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
360 Tech Engineering
360 Tech Engineering
Feb 17, 2020 · Frontend Development

Understanding Middleware Design: Recursive and Chainable Implementations in Koa and Redux

This article explains the middleware design pattern in JavaScript, illustrating recursive and chainable implementations with Koa and Redux, and explores techniques such as function composition, reduceRight, parameter passing, and the role of currying and closures.

ClosureCurryingJavaScript
0 likes · 11 min read
Understanding Middleware Design: Recursive and Chainable Implementations in Koa and Redux
Ctrip Technology
Ctrip Technology
Aug 7, 2019 · Backend Development

Using GraphQL as a Backend‑For‑Frontend (BFF): Design, Implementation, and Best Practices

This article examines why GraphQL naturally emerges for complex front‑end data needs, details its language design, architecture, resolver middleware, mocking strategies, and various deployment patterns such as API‑gateway and BFF, offering practical guidance for building scalable GraphQL services.

API designBFFBackend Development
0 likes · 36 min read
Using GraphQL as a Backend‑For‑Frontend (BFF): Design, Implementation, and Best Practices
360 Tech Engineering
360 Tech Engineering
Jun 4, 2018 · Backend Development

Understanding Web Framework Architectural Patterns: Middleware, MVC, and Dependency Injection

This article explores the philosophical limits of design patterns and then dives into three core backend architectural patterns—Middleware, MVC, and Dependency Injection—illustrating their purpose, implementation in Node.js frameworks like Express and Koa, and their impact on code modularity and scalability.

ExpressKoaMVC
0 likes · 12 min read
Understanding Web Framework Architectural Patterns: Middleware, MVC, and Dependency Injection
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 DevelopmentGuardsInterceptors
0 likes · 10 min read
Introducing NestJS and Nesk: Backend Framework Overview and Koa Integration
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.

Backend DevelopmentError HandlingFile Upload
0 likes · 19 min read
Comprehensive Guide to Building Web Applications with Koa