Skip to content

Simple static file/directory HTTP server

License

Notifications You must be signed in to change notification settings

probablykasper/serve

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serve

A simple HTTP server for serving static files.

Install

Using Homebrew:

brew install probablykasper/tap/serve

Installing from source:

go get github.com/probablykasper/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

Sponsor this project

 

Packages

No packages published

Languages

  • Go 72.6%
  • Makefile 27.4%