Simple & lighweight mock server on localhost for testing.
Find a file
2023-12-01 21:53:15 +03:00
public use the correct tag URL in the version string 2023-12-01 21:42:52 +03:00
vendor vendor dependencies for nix 2023-12-01 21:52:11 +03:00
.gitignore style the root serve path 2023-12-01 21:40:31 +03:00
default.nix v+ 2023-12-01 21:53:15 +03:00
flake.lock default.nix 2023-12-01 21:51:58 +03:00
flake.nix default.nix 2023-12-01 21:51:58 +03:00
go.mod vendor dependencies for nix 2023-12-01 21:52:11 +03:00
go.sum initial commit 2023-12-01 20:43:45 +03:00
LICENSE Initial commit 2023-12-01 20:28:43 +03:00
main.go style the root serve path 2023-12-01 21:40:31 +03:00
README.md style the root serve path 2023-12-01 21:40:31 +03:00
shell.nix default.nix 2023-12-01 21:51:58 +03:00

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

  1. Clone the project
  2. Create a .env file
  • Add SERVER_PORT={PORT}
  • Add BASE_PATH={PATH}
  1. 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.