表达例子
此页面包含使用 Express 的示例列表。
🌐 This page contains list of examples using Express.
- auth - 使用登录名和密码进行身份验证
- 内容协商 - HTTP 内容协商
- cookie-sessions - 使用基于 Cookie 的会话
- cookies - 使用 cookies
- 下载 - 将文件传输到客户端
- ejs - 使用嵌入式 JavaScript 模板 (ejs)
- 错误页面 - 创建错误页面
- 错误 - 使用错误中间件
- hello-world - 简单请求处理器
- markdown - Markdown 作为模板引擎
- 多路由 - 使用多个 Express 路由
- mvc - MVC 风格的控制器
- 在线 - 使用
online和redis包跟踪在线用户活动 - params - 使用路由参数
- 资源 - 对同一资源的多次 HTTP 操作
- 路由图 - 使用地图组织路由
- route-middleware - 使用路由中间件
- route-separation - 为每个资源组织路由
- 搜索 - 搜索 API
- 会话 - 用户会话
- static-files - 提供静态文件
- vhost - 使用虚拟主机
- view-constructor - 动态渲染视图
- view-locals - 在中间件调用之间在请求对象中保存数据
- web-service - 简单的 API 服务
额外示例
🌐 Additional examples
这些是一些具有更广泛集成的其他示例。
🌐 These are some additional examples with more extensive integrations.
Warning
这些信息涉及由第三方维护的站点、产品或模块,并非由 Expressjs 团队维护。在此列出并不构成 Expressjs 项目团队的认可或推荐。
🌐 This information refers to third-party sites, products, or modules that are not maintained by the Expressjs team. Listing here does not constitute an endorsement or recommendation from the Expressjs project team.
- prisma-rest-api-ts - 使用 Prisma 作为 ORM,在 TypeScript 中使用 Express 的 REST API