Local Server
A downloadable server
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...
It should be possible to build this for MacOS or Linux (the command should just be "go build localserver.go") but I haven't done that.
Leave a comment
Log in with itch.io to leave a comment.