Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

ethanpil/sheret

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sheret-logo

Sheret

A tiny, simple static web server written in Go.

GPL Licence

Table of Contents

Install

Windows binaries are available from the Sheret Releases page on GitHub. Download and extract the binary to anywhere on your filesystem. There are no dependencies.

Note: The binary release is packed with UPX to reduce size.

Usage

2017-05-26_144823

Usage: sheret [options]

Parameters:
  -d string
        directory to serve from (default ".")
  
  -f    log to disk [sheret.log]
  
  -p string
        port to serve on (default "8100")
  
  -q    suppress all logging
  
  -h    show usage help

After downloading, you can start Sheret simply with sheret from the command line. By default, Sheret will begin serving from the directory it is located, on HTTP port 8100. Sheret will log all activity to the console. To terminate Sheret, simply type CTRL+C in the console window.

The console window will log all requests, and pretty print POST request variables for easier debugging.

2017/05/26 14:51:41 [::1]:61814 GET /
2017/05/26 14:51:34 [::1]:61814 POST /
2017/05/26 14:51:34 ---- POST Data: ------------------------
2017/05/26 14:51:34 number-one   =       MyValue
2017/05/26 14:51:34 number-two   =       AnotherVal
2017/05/26 14:51:34 number-three =
2017/05/26 14:51:34 ---- End POST Data. 3 Fields Received --

The -f option will enable logging to disk. All console output from Sheret will also be saved in sheret.log next to the executable.

Contribute

PRs accepted. Submit any suggestions or corrections via a GitHub pull request. Support via GitHub issues is limited.

Security

This is a simple tool meant for developers to test local code. It is 100% based on Golangs included HTTP library. No security related code or testing has been added by the author. This tool is not meant for production use, or even any type of server which connects directly to a public network. No guarantee is provided or implied.

Credits & Acknowledgments

  • The Sheret logo icon is provided by FreePik
  • FYI: שרת Sheret is the Hebrew word for Serverץ :)

License

GPL v3 © Ethan Piliavin