swift-web

1.0.0

Web server serving local files
adam-fowler/swift-web

What's New

v1.0.0

2024-12-02T18:17:56Z
  • Rebuilt with Hummingbird 2

swift-web

A web server serving local static files.

Installation

Using Mint

The easiest way to install swift-web is via mint.

mint install adam-fowler/swift-web

Using Swift Package Manager

git clone https://github.com/adam-fowler/swift-web
swift build -c release

And then copy .build/release/swift-web to a folder in your $PATH

Running

To serve files from the current folder run

swift web

This will run a web server bound to port 8001. Type localhost:8001/<filename> into your web browser to view a file.

To serve files from a particular folder run

swift web <folder>

You can also change the port the server uses with the --port option.

swift web <folder> --port 8080

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

Last updated: Sun May 11 2025 04:31:38 GMT-0900 (Hawaii-Aleutian Daylight Time)