Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arthrp/localserver
Simple server for local usage, serving specified directory
https://github.com/arthrp/localserver
custom-server localserver
Last synced: about 2 months ago
JSON representation
Simple server for local usage, serving specified directory
- Host: GitHub
- URL: https://github.com/arthrp/localserver
- Owner: arthrp
- License: gpl-3.0
- Created: 2020-08-25T14:23:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-25T23:44:46.000Z (about 4 years ago)
- Last Synced: 2024-10-14T01:18:35.662Z (3 months ago)
- Topics: custom-server, localserver
- Language: Rust
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# localserver
[![Crates.io](https://img.shields.io/crates/v/localserver.svg)](https://crates.io/crates/localserver)Simple server to serve specified folder locally
## Motivation
Sometimes you just need a simple server that would serve a certain directory. For example, when you're compiling your code to Web Assembly, browser won't let you access those files via file URI scheme (```file:\\```), you'll need to serve them via http.
## Implementation
It leverages the power of [warp](https://github.com/seanmonstar/warp), so all the complexity is handled there.
## Usage
localserver [/path/to/folder] [port] (optional)