Simple ad-hoc server with SPA support based on Warp! Excellent for testing React, Angular, Vue apps and the like.
First you will need to install it globally:
sh
cargo install microserver
```sh
microserver
microserver ./path/to/folder
microserver -h ```
```sh
microserver -p 3000 ```
SPA support is enabled by default, meaning that if a resource is not found traffic will always be redirected to index.html
.
If you want to opt-out of this behavior you just have to use the --no-spa
flag.
In the case you ever need the default spa index
you can provide the --spa-index
flag.