pharaoh 0.0.8+3 copy "pharaoh: ^0.0.8+3" to clipboard
pharaoh: ^0.0.8+3 copied to clipboard

Minimalist web-server library for Dart

example/README.md

Examples #

API Service #

API service with a database access, secured with :api-key using a Middleware on PATH: /api and 3 has routes.

  • GET: /api/users
  • GET: /api/repos
  • GET: /api/user/:name/repos

Jump to Source

Route Groups #

API service with two route groups /guest and /admin.

  • Group: /admin
  • Group: /guest

Jump to Source

Middleware #

API service with Logger Middleware that logs every request that hits our server.

Jump to Source

CORS with Shelf Middleware #

Add CORS to our Pharaoah server using shelf_cors_headers

Jump to Source

Helmet with Pharaoh (Shelf Middleware) #

Use Helmet with Pharaoah shelf_helmet

Jump to Source

Serve Webpages and Files 1 #

Serve a Webpage, and files using Pharaoh

Jump to Source

Serve Webpages and Files 2 #

Serve a Webpage, favicon and Image using shelf_static

Jump to Source

32
likes
120
points
65
downloads

Publisher

verified publisheryaroo.dev

Weekly Downloads

2024.09.21 - 2025.04.05

Minimalist web-server library for Dart

Repository (GitHub)
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

collection, crypto, dotenv, ez_validator_dart, get_it, grammer, http_parser, meta, mime, reflectable, shelf, spanner, spookie, uuid

More

Packages that depend on pharaoh