https://github.com/gjerokrsteski/ralph-file-server
lightweight RESTful HTTP file-server written in Go
https://github.com/gjerokrsteski/ralph-file-server
bash file-server go golang http restful server
Last synced: about 2 months ago
JSON representation
lightweight RESTful HTTP file-server written in Go
- Host: GitHub
- URL: https://github.com/gjerokrsteski/ralph-file-server
- Owner: gjerokrsteski
- Created: 2018-12-20T13:42:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-20T15:51:38.000Z (over 7 years ago)
- Last Synced: 2025-03-14T06:22:24.498Z (over 1 year ago)
- Topics: bash, file-server, go, golang, http, restful, server
- Language: Shell
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RESTful HTTP File Server [](https://travis-ci.org/gjerokrsteski/ralph-file-server) [](https://goreportcard.com/report/github.com/gjerokrsteski/ralph-file-server)
I wrote this server for my best friend Ralph. It is a lightweight RESTful HTTP file-server,
that serves HTTP requests with the contents of the file.
## Use Cases
- Simple if you want to list a files from specific directory.
- Developers who need a quick back-end for prototyping and mocking.
## Download
Ralph is compiled for amd64 architecture and supports following operating systems: window, darwin (mac) and linux.
[Download latest release](https://github.com/gjerokrsteski/ralph-file-server/releases)
### 1. Explorer the binary
```
./ralph-file-server -h
```
```
Usage of ./ralph-file-server:
-dir string
directory of static file to host (default ".")
-port string
port to serve on (default "8100")
-version
prints current version
```
### 2. Start the file-server (default port is 8100)
```
./ralph-file-server -port=5454 -dir=/path/to/files/
```
# Development
For developing and contributing you need [Golang 1.9.1](https://golang.org/) installed.