パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.0.8+3

pharaoh

Dart用のミニマルなWebサーバーライブラリ

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
129
いいね数
33
Pub ポイント
110

パッケージをインストール

flutter pub add pharaoh

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Pharaohは、Dart向けのミニマルなWebサーバーライブラリであり、ウェブサーバーを構築するための軽量かつ効率的なソリューションを提供することを目的としています。シンプルさとパフォーマンスに重点を置き、最小限のボイラープレートで高速でスケーラブルなバックエンドサービスを構築したい開発者にとって理想的です。Dartの非同期機能に基づいて構築されており、Android、iOS、macOS、Windows、Linuxなどすべての主要プラットフォームをサポートし、クロスプラットフォームのサーバー開発を可能にしています。洗練されたAPIにより、RESTfulサービスや簡単なHTTPハンドラーの迅速なプロトタイピングおよびデプロイが実現できます。

用途

  • 軽量な REST API の構築
  • クロスプラットフォームのバックエンドサービスの作成
  • ウェブアプリケーションのプロトタイピング
  • マイクロサービスの開発
  • HTTPハンドラの実装

主な機能

  • ミニマリスティックデザイン
  • クロスプラットフォーム対応
  • 非同期 I/O
  • 軽量なフットプリント
  • シンプルな API
  • 高性能

適している対象

  • シンプルさを求めるDart開発者
  • 最小のオーバーヘッドを必要とするプロジェクト
  • クロスプラットフォームサーバーアプリケーション
  • 高速プロトタイピング
  • マイクロサービスアーキテクチャ

注意事項

  • 大規模なエンタープライズバックエンドには適していません
  • 制限された組み込みミドルウェア
  • 高度なルーティングの手動処理が必要
  • 小規模から中規模のアプリケーションに最適
  • 組み込みデータベース統合なし

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Pharaoh 🏇

Test Pipeline codecov Pub Version likes melos

Features

  • Robust routing
  • Focus on high performance
  • Super-high test coverage
  • HTTP helpers (just like ExpressJS)
  • Interoperability with Shelf Middlewares See here

Installing:

In your pubspec.yaml

dependencies:
  pharaoh: ^0.0.6 # requires Dart => ^3.0.0

Basic Usage:

import 'package:pharaoh/pharaoh.dart';

void main() async {

  final guestRouter = Pharaoh.router
    ..get('/user', (req, res) => res.ok("Hello World"))
    ..post('/post', (req, res) => res.json({"mee": "moo"}))
    ..put('/put', (req, res) => res.json({"pookey": "reyrey"}));

  final app = Pharaoh()
    ..use((req, res, next) => next());
    ..get('/foo', (req, res) => res.ok("bar"))
    ..group('/guest', guestRouter);

  await app.listen();
}

See the Pharaoh Examples directory for more practical use-cases.

Philosophy

Pharaoh emerges as a backend framework, inspired by the likes of ExpressJS, to empower developers in building comprehensive server-side applications using Dart. The driving force behind Pharaoh's creation is a strong belief in the potential of Dart to serve as the primary language for developing the entire architecture of a company's product. Just as the JavaScript ecosystem has evolved, Pharaoh aims to contribute to the Dart ecosystem, providing a foundation for building scalable and feature-rich server-side applications.

Contributors ✨

The Pharaoh project welcomes all constructive contributions. Contributions take many forms, from code for bug fixes and enhancements, to additions and fixes to documentation, additional tests, triaging incoming pull requests and issues, and more!

Contributing Code To Pharaoh 🛠

To setup and contribute to Pharaoh, Install Melos as a global package via pub.dev;

$ dart pub global activate melos

then initialize the workspace using the command below

$ melos bootstrap
Running Tests

To run the tests, you can either run dart test in the package you're working on or use the command below to run the full test suite:

$ melos run tests

People

List of all contributors

License

MIT

カテゴリー

依存関係

依存関係一覧 14 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。