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

套件詳情v5.1.0

stream

輕量級 Dart Web 伺服器,支援請求路由、過濾、樣板引擎、MVC 設計模式和基於檔案的靜態資源。

AndroidiOSmacOSWindowsLinux
近 30 天下載
3020
喜歡數
8
Pub 分數
120

安裝套件

flutter pub add stream

套件介紹

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

Stream 是一個輕量級的 Dart Web 伺服器,支援請求路由、過濾、內建樣板引擎、MVC 設計模式以及基於檔案的靜態資源處理。它設計簡潔且效能出色,可在 Android、iOS、macOS、Windows 和 Linux 等多個平台運行。對於尋求為 Dart 基礎的 Web 專案提供極簡但功能強大的後端解決方案的開發者而言,Stream 能夠簡化伺服器端邏輯,同時保持高度的可自訂性與整合彈性。

適用情境

  • 建構輕量級 Web API
  • 使用模板創建動態網頁應用
  • 在Dart中實現MVC架構
  • 從磁碟提供靜態檔案
  • 開發跨平台 Web 伺服器

主要特色

  • 請求路由與過濾
  • 內建樣板引擎
  • MVC 設計模式支援
  • 基於檔案的靜態資源
  • 跨平台相容性

適合對象

  • Dart 開發人員
  • 後端Web應用開發
  • 原型設計 Web 服務
  • 全端 Dart 項目
  • 輕量級伺服器解決方案

使用建議

  • 僅限 Dart 生態系統
  • 需要手動設定以啟用複雜功能
  • 與較大的框架相比,社群規模較小
  • 對於高流量生產系統而言,若未進行額外擴展,則非理想選擇
  • 高級用例的文件可能比較稀疏

原始 README

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

Stream

Stream is a Dart web server supporting request routing, filtering, template engine, WebSocket, MVC design pattern and file-based static resources.

Installation

Add this to your pubspec.yaml (or create it):

dependencies:
  stream:

Usage

  • Introduction
  • Getting Started with Hello World
Compile RSP (Rikulo Stream Page) to dart files

There are two ways to compile RSP files into dart files: automatic building with Dart Editor or manual compiling.

RSP is a template technology allowing developers to create dynamically generated web pages based on HTML, XML or other document types (such as this and this).

Build with Dart Editor

To compile your RSP files automatically, you just need to add a build.dart file in the root directory of your project, with the following content:

import 'package:stream/rspc.dart';
void main(List<String> arguments) {
  build(arguments);
}

With this build.dart script, whenever your RSP is modified, it will be re-compiled.

Compile Manually

To compile a RSP file manually, run rspc (RSP compiler) to compile it into the dart file with command line interface as follows:

dart -c lib/rspc.dart -n dir1 dir2 file1 fire2...

A dart file is generated for each RSP file you gave. Fore more options, please run:

dart -c lib/rspc.dart -h

Notes to Contributors

Fork Stream

If you'd like to contribute back to the core, you can fork this repository and send us a pull request, when it is ready.

Please be aware that one of Stream's design goals is to keep the sphere of API as neat and consistency as possible. Strong enhancement always demands greater consensus.

If you are new to Git or GitHub, please read this guide first.

Who Uses

  • Quire - a simple, collaborative, multi-level task management tool.
  • Keikai - a sophisticated spreadsheet for big data
  • Ottava - a no-code SaaS platform simplifying data management, chart creation, and data analysis.

所屬分類

依賴

依賴清單 7 項

原始碼儲存庫

使用此套件的專案