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

套件詳情v1.2.6

dart_frog

Dart Frog 的官方執行時間 —— 一個快速、極簡的 Dart 後端框架。

AndroidiOSmacOSWindowsLinux
近 30 天下載
23.7萬
喜歡數
864
Pub 分數
160

安裝套件

flutter pub add dart_frog

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Dart Frog 是使用 Dart 建構的快速、輕量級後端框架的官方執行環境。專為高效率與簡潔性設計,讓開發者能以清晰、模組化的程式碼建立可擴展的伺服器端應用程式。此框架透過直覺的路由、中間件支援以及與 Dart 生態系統的無縫整合,強調開發人員體驗。非常適合用來建構 API 與無伺服器函數,Dart Frog 可在 Android、iOS、macOS、Windows 與 Linux 等多個平台運行,使其成為現代後端開發的多功能選擇。

適用情境

  • 建構 RESTful API
  • 建立無伺服器函數
  • 開發即時後端服務
  • 與 Flutter 應用整合
  • 微服務架構
  • 全-stack Dart 應用

主要特色

  • 輕量且快速的執行時間
  • 內建中間件支援
  • 模組化路由處理
  • 跨平台相容性
  • 無縫整合Dart生態系統
  • 輕鬆的部署選項

適合對象

  • 尋求輕量級後端的Dart開發者
  • 建構全端 Dart 解決方案的團隊
  • 需要高性能 API 的專案
  • 無伺服器函數部署
  • 新創企業優先考慮快速後端開發

使用建議

  • 與更大的框架相比,社群規模有限
  • 仍在不斷演進,第三方外掛更少
  • 最適合已經使用 Dart 的專案
  • 需要熟悉 Dart 語法和非同步程式設計
  • 企業級整合的生態系統尚不成熟

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Dart Frog Logo Dart Frog Logo

discord dart

ci coverage style: dart frog lint License: MIT Powered by Mason

A fast, minimalistic backend framework for Dart 🎯

Originally developed by Very Good Ventures 🦄

Documentation 📝

For official documentation, please visit https://dart-frog.dev.

Packages 📦

Package Pub
dart_frog pub package
dart_frog_auth pub package
dart_frog_cli pub package
dart_frog_gen pub package
dart_frog_lint pub package
dart_frog_test pub package
dart_frog_web_socket pub package

Quick Start 🚀

Prerequisites 📝

In order to use Dart Frog you must have the Dart SDK installed on your machine.

Installing 🧑‍💻
# 📦 Install the dart_frog cli from pub.dev
dart pub global activate dart_frog_cli
Creating a Project ✨

Use the dart_frog create command to create a new project.

# 🚀 Create a new project called "my_project"
dart_frog create my_project
Start the Dev Server 🏁

Next, open the newly created project and start the dev server via:

# 🏁 Start the dev server
dart_frog dev

💡 Tip: By default port 8080 is used. A custom port can be used via the --port option.

Create a Production Build 📦

Create a production build which includes a DockerFile so that you can deploy anywhere:

# 📦 Create a production build
dart_frog build
Create New Routes and Middleware 🛣️

To add new routes and middleware to your project, use the dart_frog new command.

# 🛣️ Create a new route "/hello/world"
dart_frog new route "/hello/world"

# 🛣️ Create a new middleware for the route "/hello/world"
dart_frog new middleware "/hello/world"

Goals 🎯

Dart Frog is built on top of shelf and mason and is inspired by many tools including remix.run, next.js, and express.js.

The goal of Dart Frog is to help developers effectively build backends in Dart. Currently, Dart Frog is focused on optimizing the process of building backends which aggregate, compose, and normalize data from multiple sources.

Dart Frog provides a simple core with a small API surface area in order to reduce the learning curve and ramp-up time for developers. In addition, Dart Frog is intended to help Flutter/Dart developers maximize their productivity by having a unified tech stack that enables sharing tooling, models, and more!

Extensions 💻

  • VSCode: extends VSCode with support for Dart Frog and provides tools for effectively managing Dart Frog projects within VSCode.

所屬分類

依賴

依賴清單 7 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。

所在榜單