Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 25 days 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-20T15:51:38.000Z (about 6 years ago)
- Last Synced: 2024-11-19T21:43:44.550Z (3 months 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 [![Build Status](https://travis-ci.org/gjerokrsteski/ralph-file-server.svg?branch=master)](https://travis-ci.org/gjerokrsteski/ralph-file-server) [![Go Report Card](https://goreportcard.com/badge/github.com/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.