Simple & lighweight mock server on localhost for testing.
Find a file
2023-12-01 21:40:31 +03:00
public style the root serve path 2023-12-01 21:40:31 +03:00
.gitignore style the root serve path 2023-12-01 21:40:31 +03:00
go.mod initial commit 2023-12-01 20:43:45 +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

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.