Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.