Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bartekpacia/fileserver
Simple fileserver to serve a different file from an array of files over time.
https://github.com/bartekpacia/fileserver
Last synced: 22 days ago
JSON representation
Simple fileserver to serve a different file from an array of files over time.
- Host: GitHub
- URL: https://github.com/bartekpacia/fileserver
- Owner: bartekpacia
- Created: 2020-11-01T20:01:21.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-30T00:22:00.000Z (about 4 years ago)
- Last Synced: 2024-10-26T07:59:33.395Z (2 months ago)
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Extremely simple fileserver
This tiny program makes it easy to serve any JSON file over the internet (or, more commonly, localhost).
### Serve files
```
+-- project/data
+-- 1
| +-- data.json
+-- 2
| +-- data.json
+-- 3
| +-- and so on...
```The program will iterate over each JSON file (starting at 1) and serve its contents through TCP/IP. The
content will be refreshed every 5 seconds by default.### Get help
`go build main.go`
and
`./main --help`
to see command-line options.