dart_frog
Dart Frog 的官方執行時間 —— 一個快速、極簡的 Dart 後端框架。
一個快速、極簡的 Dart 後端框架 🎯
Dart Frog 的官方執行時間 —— 一個快速、極簡的 Dart 後端框架。
Dart Frog 的官方驗證庫 —— 一個快速、輕量的 Dart 後端框架。
Dart Frog 的官方命令列介面 —— 一個快速、極簡的 Dart 後端框架。
Dart Frog 的 WebSocket 支持 — 一個快速、輕量的 Dart 後端框架。
一組專為 Dart Frog 建構的 lint 规則 —— 一個快速、輕量級的 Dart 後端框架。
以下為英文專案原文快照,最新內容請造訪 GitHub。
ci coverage style: dart frog lint License: MIT Powered by Mason
A fast, minimalistic backend framework for Dart 🎯
Originally developed by Very Good Ventures 🦄
For official documentation, please visit https://dart-frog.dev.
| 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 |
In order to use Dart Frog you must have the Dart SDK installed on your machine.
# 📦 Install the dart_frog cli from pub.dev
dart pub global activate dart_frog_cli
Use the dart_frog create command to create a new project.
# 🚀 Create a new project called "my_project"
dart_frog create my_project
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 which includes a DockerFile so that you can deploy anywhere:
# 📦 Create a production build
dart_frog build
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"
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!