pharaoh 0.0.6+4 copy "pharaoh: ^0.0.6+4" to clipboard
pharaoh: ^0.0.6+4 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