패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.0.8+3

pharaoh

Dart용 미니멀 웹 서버 라이브러리

AndroidiOSmacOSWindowsLinux
30일 다운로드
129
좋아요
33
Pub 점수
110

패키지 설치

flutter pub add pharaoh

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Pharaoh는 Dart를 위한 최소한의 웹 서버 라이브러리로, 웹 서버를 구축하기 위한 가볍고 효율적인 솔루션을 제공하도록 설계되었습니다. 단순성과 성능에 중점을 두어, 최소한의 보일러플레이트로 빠르고 확장 가능한 백엔드 서비스를 만들고자 하는 개발자에게 이상적입니다. 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.