搜尋套件、儲存庫與 APP 分類

套件詳情v7.0.0

conduit

一個現代的 HTTP 伺服器應用框架、ORM 與 OAuth2 提供者,整合 OpenAPI 3.0。作為 REST、RPC 或 GraphQL 服務的基礎。

macOSWindowsLinux
近 30 天下載
3040
喜歡數
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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。