Live Server - Launch a local network server with live reload feature for static pages

Overview

Crates.io License

Live Server

Launch a local network server with live reload feature for static pages.

Install

$ cargo install live-server

Usage

$ live-server --help
live-server 0.2.0
Launch a local network server with live reload feature for static pages

USAGE:
    live-server [OPTIONS]

OPTIONS:
    -h, --help           Print help information
    -p, --port 
   
        [default: 8000]
   
    -V, --version        Print version information

Example

$ live-server
Watcher listening on /home/lomirus/demo
 Server listening on http://192.168.0.105:8000/
[UPDATE] "index.html"
[UPDATE] "script.js"
You might also like...
Node.js http server framework powered by Hyper native binding.

hnsjs POC project. Install this test package yarn add @hnsjs/core Support matrix node10 node12 node14 node15 Windows x64 ✓ ✓ ✓ ✓ Windows x32 ✓ ✓ ✓ ✓

Akasio is a simple HTTP server that redirects traffic based on a JSON redirect table. This is its Rust implementation.

This page is inaccurate and is pending updates. Akasio (Rust) Description Akasio is a simple HTTP server that redirects traffic based on a JSON redire

RUSTENGINE is the high-assurance HTTP server.

RUSTENGINE Table of Contents RUSTENGINE Table of Contents About RUSTENGINE Inspiration with Rust Features Compares with Nginx Build & Run About this R

OxHTTP is a very simple synchronous HTTP client and server

OxHTTP is a very simple synchronous implementation of HTTP 1.1 in Rust. It provides both a client and a server.

A synchronous HTTP server built on hyper.

Astra Astra is a synchronous HTTP server built on top of hyper. use astra::{Body, Response, Server}; fn main() { Server::bind("localhost:3000")

Operator is a web server. You provide a directory and Operator serves it over HTTP.
Operator is a web server. You provide a directory and Operator serves it over HTTP.

Operator Operator is a web server. You provide a directory and Operator serves it over HTTP. It serves static files the way you'd expect, but it can a

Create, share, fetch and model Atomic Data! This project consists of a graph database + server, a CLI and a rust library.

Create, share, fetch and model Atomic Data! This repo consists of three components: A library, a server and a CLI. atomic-server Status: Beta. Breakin

Server with Rust, Rocket, Diesel, Docker to create your own to-do-list

Installation Install Docker & Docker-Compose Then download the repository go to the root where the Dockerfile is and do: sudo docker-compose up sudo i

Completely OBSOLETE Rust HTTP library (server and client)

OBSOLETION NOTICE This library is DEAD. It was a useful experiment and is now being replaced under the scope of the Teepee (experimentation grounds at

Comments
  • Can't find html file when using the path parameter

    Can't find html file when using the path parameter

    I get

    [ERROR] Failed to read "./index.html": could not read file `./index.html`
    

    When running without the path parameter from inside the path it works fine.

    bug 
    opened by mightyiam 3
  • Fails to read TTF files

    Fails to read TTF files

    I am trying to serve a ttf file and I am getting:

    [ERROR] Failed to read "/home/alexander/ultron/open-source_projects/mobusoperandi.github.io/output/primary.ttf": could not read file `/home/alexander/ultron/open-source_projects/mobusoperandi.github.io/output/primary.ttf`
    

    File system permissions seem fine.

    bug 
    opened by TheCre8tor 2
  • fix: multilingual support for windows on local ip crate

    fix: multilingual support for windows on local ip crate

    Updates local-ip-address to latest due to the introduction of the usage of the default gateway on Windows machines to determine the local IP address.

    Resolves: https://github.com/lomirus/live-server/issues/1

    opened by EstebanBorai 1
Releases(v0.5.0)
  • v0.5.0(Sep 13, 2022)

    • Improve the responding speed of HTML file by removing the extra parsing step by @lomirus
    • Fix multilingual support for windows on local-ip-address crate by @EstebanBorai
    Source code(tar.gz)
    Source code(zip)
  • v0.4.2(Aug 17, 2022)

    Improvements

    • Add \n to the inserted script and thus make it more readable by @lomirus
    • Simplify the some error logs by @lomirus

    Fix

    • #5 Cannot response local binary files by @lomirus

    Chore

    • Create VSCode debug configurations by @lomirus
    Source code(tar.gz)
    Source code(zip)
  • v0.4.1(Jul 7, 2022)

  • v0.4.0(Jul 7, 2022)

    Feature

    • Customize the serving path by @lomirus for #2

    Fix

    • Cannot connect to web socket as expect when the port is occupied by other programs by @lomirus

    Chores

    • Bump html-editor to v0.5.1 by @lomirus
    • Add CI script for checking format and clippy by @lomirus
    Source code(tar.gz)
    Source code(zip)
  • v0.3.0(Mar 12, 2022)

    Feature

    • Customize the host of server by option -h/--host.

    Fix

    • Panic on some Chinese Language OS because it cannot get the local IP address. Now live-server can run on them but will just listen on localhost by default and show the error message.

    Improvement

    • Some other error message refinements.
    Source code(tar.gz)
    Source code(zip)
  • v0.2.1(Jan 28, 2022)

    Feature

    • Print version information by -v/--version option

    Fix

    • The port in the script inserted to the HTML would not be updated automatically even if the server port has switched from the default one;
    • Failed to parse some HTML file because of the upstream(html_editor) bugs

    Improvement

    • Improve the error log when failing to read or parse a file;
    Source code(tar.gz)
    Source code(zip)
  • v0.2.0(Jan 19, 2022)

    Feature

    • Switch port automatically if it's already in use by another program when launching live-server.

    Improvement

    • Print the readable error information when encountering an error of the file watcher

    Fix(Upstream)

    • Fail to load a html file if it contains such codes or other like: <script src="index.js" type="module" defer></script>
    Source code(tar.gz)
    Source code(zip)
  • v0.1.1(Jan 16, 2022)

Owner
Lomirus
Rookie Web Dev | Using TS/JS/RS | Wanna be an Indie Game Dev | Now just being slacking 😪
Lomirus
A blazingly fast static web server with routing, templating, and security in a single binary you can set up with zero code. :zap::crab:

binserve ⚡ ?? A blazingly fast static web server with routing, templating, and security in a single binary you can set up with zero code. ?? UPDATE: N

Mufeed VH 722 Dec 27, 2022
simple static file server written in Rust based on axum framework

static-server simple static file server written in Rust based on axum framework I'm learning Rust and axum. My thought is simple. axum has a static-fi

null 27 Jan 1, 2023
VRS is a simple, minimal, free and open source static web server written in Rust

VRS is a simple, minimal, free and open source static web server written in Rust which uses absolutely no dependencies and revolves around Rust's std::net built-in utility.

null 36 Nov 8, 2022
Host These Things Please - a basic http server for hosting a folder fast and simply

http Host These Things Please - a basic HTTP server for hosting a folder fast and simply Selected features See the manpage for full list. Symlinks fol

thecoshman 367 Dec 23, 2022
Simple http server in Rust (Windows/Mac/Linux)

How it looks like? Screenshot Command Line Arguments Simple HTTP(s) Server 0.6.1 USAGE: simple-http-server [FLAGS] [OPTIONS] [--] [root] FLAGS:

LinFeng Qian 788 Dec 28, 2022
Simple and fast web server

see Overview Simple and fast web server as a single executable with no extra dependencies required. Features Built with Tokio and Hyper TLS encryption

null 174 Dec 9, 2022
GraphQL server library for Rust

GraphQL server library for Rust GraphQL is a data query language developed by Facebook intended to serve mobile and web application frontends. Juniper

GraphQL Rust 4.9k Jan 5, 2023
Fully async-await http server framework

Saphir is a fully async-await http server framework for rust The goal is to give low-level control to your web stack (as hyper does) without the time

Richer Archambault 83 Dec 19, 2022
Low level HTTP server library in Rust

tiny-http Documentation Tiny but strong HTTP server in Rust. Its main objectives are to be 100% compliant with the HTTP standard and to provide an eas

null 785 Dec 29, 2022
web browser as a language server

web-browser-lsp A toy program that implements a text-based web browser as a language server. Motivation My favorite progrmming tools are neovim, tmux

octaltree 17 Nov 24, 2022