搜索插件、代码仓与 APP 分类

插件详情v7.0.0

conduit

一个现代的 HTTP 服务器应用框架、ORM 和 OAuth2 提供者,集成 OpenAPI 3.0。适用于 REST、RPC 或 GraphQL 服务的基础架构。

macOSWindowsLinux
近 30 天下载
2230
喜欢数
176
Pub 分数
130

安装插件

flutter pub add conduit

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Conduit 是一个现代的 Dart HTTP 服务器框架,专为构建 REST、RPC 和 GraphQL 服务而设计。它包含一个 ORM、OAuth2 提供者和原生 OpenAPI 3.0 集成,可快速开发可扩展的后端应用程序。Conduit 以性能和开发者体验为核心,支持在 macOS、Windows 和 Linux 上跨平台部署。其模块化架构可无缝集成身份验证、数据建模和 API 文档。

适合场景

  • 构建 RESTful API
  • 创建 GraphQL 服务器
  • 实施OAuth2身份验证
  • 生成 OpenAPI 文档
  • 开发微服务

主要特点

  • 内置 ORM
  • OAuth2 提供方
  • OpenAPI 3.0 支持
  • 跨平台兼容性
  • 模块化设计

适合对象

  • 后端开发人员
  • 以 API 为先的应用程序构建者
  • 使用 Dart 编写服务器端代码的团队
  • 需要强大 API 文档的项目

使用建议

  • 需要熟悉 Dart
  • 与成熟框架相比,生态系统有限
  • 最适合新项目,而不是遗留系统迁移

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Linux Windows Macos melos

Conduit is a fork of Stablekernel's Aqueduct, a modern Dart HTTP server framework.

Getting Started

  1. Install Dart.
  2. Activate Conduit.
dart pub global activate conduit
  1. Create a new project.
conduit create my_project
  1. Serve the project.
cd my_project
conduit serve

Building from Source

If you want to contribute to Conduit or build it from source, you will need Melos.

  1. Install Melos:
dart pub global activate melos
  1. Bootstrap the project:
melos bootstrap
  1. Run tests:

[!IMPORTANT] Tests require a running PostgreSQL instance and specific environment variables. You can start the database using Docker: docker-compose -f ci/docker-compose.yaml up -d

export POSTGRES_USER=conduit_test_user
export POSTGRES_PASSWORD=conduit!
export POSTGRES_DB=conduit_test_db
export POSTGRES_PORT=15432
export POSTGRES_HOST=localhost

melos run test-unit

Tutorials, Documentation and Examples

We are currently in the process of collating helpful resources for your edification. Our main docs live here.

Conduit is a close fork to Aqueduct, so Aqueduct examples can be tweaked to work with Conduit here. The major concern is updating the code to use null-safety.

Contributors

j4qfrost
j4qfrost

💻
neterror
neterror

💻
Luis
Luis

💻
Artem Semirenko
Artem Semirenko

🐛 💻
Dmytro Prylutskyi
Dmytro Prylutskyi

💻

所属分类

依赖

依赖清单 20 项

源码仓库

使用此插件的项目

暂无相关数据。