Skip to content
kasper9nPublic
forked from sandeepraju/serve

About

Simple static file/directory HTTP server

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

48 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serve

A simple HTTP server for serving static files.

Install

Using Homebrew:

brew install kasper9n/tap/serve

Installing from source:

go get github.com/kasper9n/serve

Download binaries

Usage

Serve 1.0.0
  
USAGE:
    serve [dir] [options...]

EXAMPLE:
    serve -p 80 ./website

OPTIONS:
    --address value, -a value  The IP address or hostname of the interface (default: "0.0.0.0")
    --port value, -p value     The port to listen on (default: 2233)
    --verbose, -V              Log requests
    --help, -h                 Show help menu
    --version, -v              print the version

Dev instructions

Getting started

  1. Install Go
  2. Run go mod vendor to install dependencies
  3. Start by running make run or go run serve.go

Commands

Start

make run

Build & release the project (assuming you are developing on macOS)

make clean build_macos build_linux release_macos release_linux

About

Simple static file/directory HTTP server

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages