pharaoh 0.0.4 copy "pharaoh: ^0.0.4" to clipboard
pharaoh: ^0.0.4 copied to clipboard

outdated

Fast, unopinionated, minimalist web framework for Dart. Heavily inspired by ExpressJS

Pharaoh 🏇 #

Dart CI Pub Version popularity likes style: flutter lints

Features #

  • Robust routing
  • Focus on high performance
  • Super-high test coverage (need more hands, peep the issues and contribute)
  • HTTP helpers (just like ExpressJS)
  • Interoperability with Shelf Middlewares See here

Installing: #

In your pubspec.yaml

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

Basic Usage: #

import 'package:pharaoh/pharaoh.dart';

final app = Pharaoh();

void main() async {

  app.use(logRequests);

  app.get('/foo', (req, res) => res.ok("bar"));

  final guestRouter = app.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"}));

  app.group('/guest', guestRouter);

  await app.listen(); // port => 3000
}

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!

Running Tests #

To run the test suite, first install the dependencies, then run dart test:

$ dart pub get
$ dart test

People #

List of all contributors

License #

MIT

32
likes
0
points
22
downloads

Publisher

verified publisheryaroo.dev

Weekly Downloads

Fast, unopinionated, minimalist web framework for Dart. Heavily inspired by ExpressJS

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, http_parser, mason_logger, meta, mime, path_to_regexp, shelf

More

Packages that depend on pharaoh