#static #single-page #serve-static #static-file #cargo #https #server

app ou

Helps you serve a static site, single page application or just a static file

7 releases

0.1.6 Sep 27, 2022
0.1.5 Sep 10, 2022
0.1.2 Aug 28, 2022

#11 in #single-page

MPL-2.0 license

9KB
68 lines

ou

ou helps you serve a static site, single page application or just a static file (no matter if on your device or on the local network). It also provides a neat interface for listing the directory's contents.

Pre-built binaries are available on the Github Releases tab.

You can use cargo to install:

$ cargo install ou

With cargo-binstall:

$ cargo binstall ou

Quick example

Tree

Once ou is installed, you can run this command inside your project's directory. It will create by default in 8000 port:

$ ou

You can also specify the port by using --port

$ ou --port 3000

You can also specify the path

$ ou ../path-to-site --port 8123

Result:

Result ou

Dependencies

~10–24MB
~284K SLoC