Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)