Library Search
结果页

express

在 技术栈 中找到 8 个匹配结果。

返回文档库
技术栈

技术栈

8 个
查看全部
Express # Express 毕设实战 — 快速搭建后端 API ## 前言 Express 是 Node.js 最经典的 Web 框架,没有之一。它足够简单,但配合中间件生态能构建企业级应用。毕选用 Express 的最大优势是 **快**:从零到能演示的 API 只需一个晚上。 ## 第一章:中间件机制 — Express 的灵魂 Express 的核心就是 **中间件管道**。每个请求依次经过所… 3% C# <h1>🏗 Alpine.js Demo</h1> <p style="color: #666;">纯 HTML 属性驱动的交互 —— 零 JS 代码</p> <!-- 标签页组件 --> <div x-data="{ activeTab: 'vue' }"> <div class="tabs"> <button class="tab-btn" :class="… 3% Fiber # Fiber 毕设实战 — Express 用户迁移到 Go 的最短路径 ## 前言 Fiber 是 Go 生态中长得最像 Express 的框架。如果你熟悉 JavaScript/Express,Fiber 能让你在几小时内上手 Go 后端开发,同时享受 Go 的极致性能。 ## 第一章:Fiber 与 Express 的对应关系 | Express | Fiber | |-------… 3% Node.js rs/3` | `204 No Content` | ## 要点说明 - `express.json()` 中间件解析请求体 JSON - RESTful 命名规范:资源复数形式(`/users`),HTTP 方法表达操作 - 状态码:200 成功、201 创建成功、204 删除成功无内容、400 参数错误、404 不存在 # Node.js HTTP 服务器入门 ## 目标 使用 Nod… 2% Solid.js {/* For:高效列表渲染 */} <h3>📋 待办事项</h3> <ul> <For each={todos()}> {(todo, index) => ( <li> {index() + 1}. {todo} <button… 1% Remix <Form method="post" style={{ display: 'flex', gap: 8, marginBottom: 20 }}> <input type="hidden" name="_intent" value="add" /> <input name="name" placeholder="姓名*" required style={input… 1% Spring Cloud ```properties spring.application.name=user-service server.port=8081 eureka.client.service-url.defaultZone=http://localhost:8761/eureka ``` ### 3. Order Service(服务消费者 8082) ```java // Feign 客户端 @Feig… 1% GraphQL 具,需配合服务端库使用。以下以最流行的 **Apollo Server** + Express 为例。 ## 安装命令 ### Node.js (Apollo Server) ```bash npm init -y npm install @apollo/server graphql express cors body-parser npm install -D nodemon typesc… 1%