serve
webby
serve | webby | |
---|---|---|
2 | 2 | |
146 | 16 | |
- | - | |
0.0 | 10.0 | |
about 1 year ago | over 4 years ago | |
Go | Go | |
Mozilla Public License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
serve
-
static-server: an HTTP server in Go for static content
There are many projects doing the exact same thing. Here's one approach from myself, but haven't updated since 2019:
https://github.com/philippgille/serve
One difference is that it can create a TLS cert for you, instead of having to supply one via CLI arg.
I don't recommend using it in its current form though due to its (the compiled binaries') Go version being outdated.
-
Python3 http server
Not related to python, I use serve command available as snap and can be run inside any directory https://github.com/philippgille/serve/
webby
-
static-server: an HTTP server in Go for static content
I wrote something like this [1] for the team at my old workplace. We mainly worked on static html files but some functionality required loading via http. Many of the devs were quite new to development in general, so I built a simple static server in Go, as an exe which they could set as the default for `.html` file, and therefore just open via the webserver via double-click as normal. The program would watch the directory (if not already open and watching) then open the right path in the default browser. I also built-in livereload, management via tray icon and a basic web UI.
[1] https://github.com/ssddanbrown/webby
-
What tools have y'all written for yourselves?
Simple static webserver - link
What are some alternatives?
static-server - A simple, zero-configuration HTTP server CLI for serving static files
Caddy - Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
rss - A simple twitter-feed-style RSS aggregator written in PHP, Laravel, Inertia.js, Tailwind and Vue.js
go-cloud - The Go Cloud Development Kit (Go CDK): A library and tools for open cloud development in Go.
mailbag - A simple plaintext email send app based on Laravel
statiks - Fast, zero-configuration, static HTTP filer server.
wirestat - A super simple HTTP-based metric and rule system to help build a server monitoring and alerting system