mirror of
https://github.com/NotAShelf/Echo.git
synced 2024-11-01 03:31:15 +00:00
Simple & lighweight mock server on localhost for testing.
public | ||
vendor | ||
.gitignore | ||
default.nix | ||
flake.lock | ||
flake.nix | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
README.md | ||
shell.nix |
Echo
Echo allows you to setup a simple file server for local testing.
Requirements
- Go (any recent version should work, native to Go 1.21)
Usage
- Clone the project
- Create a
.env
file
- Add
SERVER_PORT={PORT}
- Add
BASE_PATH={PATH}
- Run the program with
go run .
Notes
Echo is intended for localhost testing ONLY and designed as a convenient alternative to spinning up a nginx webserver for serving files quickly. Do not use in a production environment, as no security features are implemented.