Local Server
A downloadable server for Windows, macOS, and Linux
For some kinds of web-based game dev, you can't run your game from just the files, so you need to run a local web server to test. If you're trying to show one of those projects to someone, it can be a nuisance to ask them to run a Python or Node.js web server from the command-line.
So this is a little Go application that serves static files: just drop a folder onto localserver.exe and it'll both start a server and open the game in your browser. Control+C on the server's status window to kill it when you're done.
You can also run it from the command-line (localserver directory-to-serve) since drag-n-dropping onto an exe in Windows just passes the folder path as a command-line argument...
squam on the intfiction forums explained how to cross-compile for Mac and Linux, so here are those binaries (I haven't tested the Mac one: the Linux build seems to work fine on my Mint machine), and also that I could strip the binaries, which made the Windows build almost 30% smaller, so that's nice too!
Leave a comment
Log in with itch.io to leave a comment.