An open API service indexing awesome lists of open source software.

https://github.com/rxlabz/proto_dl

shelf static handler example
https://github.com/rxlabz/proto_dl

Last synced: over 1 year ago
JSON representation

shelf static handler example

Awesome Lists containing this project

README

          

A server app built using [Shelf](https://pub.dev/packages/shelf),
configured to enable running with [Docker](https://www.docker.com/).

This sample code handles HTTP GET requests to `/` and `/event/`

# Running the sample

## Running with the Dart SDK

You can run the example with the [Dart SDK](https://dart.dev/get-dart)
like this:

```
$ dart run bin/server.dart
Server listening on port 8080
```
Open your browser :

- http://localhost:8080

- http://localhost:8080/event/546
-
- http://localhost:8080/event/546?memberId=321