Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 676 Bytes

File metadata and controls

17 lines (13 loc) · 676 Bytes

A simple Dart HTTP server using package:shelf.

  • Listens on "any IP" (0.0.0.0) instead of loop-back (localhost, 127.0.0.1) to allow remote connections.
  • Defaults to listening on port 8080, but this can be configured by setting the PORT environment variable. (This is also the convention used by Cloud Run.)
  • Includes Dockerfile for easy containerization

To deploy on Cloud Run, follow these instructions.

To run this server locally, run as follows:

$ dart run bin/server.dart