#index #page #spa #applications #single-page #portable #zero

app tspa

Test single page applications

1 unstable release

0.1.1 Jul 4, 2020
0.1.0 Jul 4, 2020

#13 in #single-page

MIT license

15KB
64 lines

tspa

Test single page applications

Routed SPAs generally require a file server which directs all traffic to a single index file. Yet, there are no existing tools to easily test them without significant setup. tspa is a simple, zero config, portable solution for locally testing SPAs from any directory.

Any path without a file extension will serve the base index file (index.html) in the specified directory (default ./). -h to specify host and -p to specify port.

Usage

seed-server.exe [OPTIONS] [DIR]

Flags

    --help       Prints help information
-V, --version    Prints version information

Options

-h, --host <host>    Server host address [default: 0.0.0.0]
-p, --port <port>    Server port [default: 8080]

Args

<DIR>    File directory [default: .]

Dependencies

~29MB
~614K SLoC