Skip to content

ET-CS/werewolf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Werewolf

REAL FAST static html webserver written in Golang.

Install

go get github.com/ET-CS/werewolf

Usage

Start the server using the werewolf command inside any directory contains html files. the server will run on port 8585 and will serve your html files.

Logic

  • index.html will be always root (http://example.com/)
  • Other files will be on route as filename (for example about.html will be example.com/about)
  • If there are minified files (index.min.html) inside the directory - they will be threated too by the same logic. (about.min.html will be example.com/about)
  • If there are two files - one minified and one is not (index.html and index.min.html for example) Werewold will use the minified one.
  • Any other file except .html files will be served as static.

All html files are cached into memory for performance on server start.

You can use task runner like Dry to easily create minified html(s) website from templates based website.

Start in background (and on boot)

As almost always, There are lot of options. I personally use supervisord to start werewolf server as daemon and nginx as proxy.

by ET-CS (Etay Cohen-Solal)

About

REAL FAST static html webserver written in Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages