Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prdpx7/go-fileserver
A simple HTTP Server to share files over WiFi via Qr Code
https://github.com/prdpx7/go-fileserver
cli go golang-package http-server
Last synced: about 2 months ago
JSON representation
A simple HTTP Server to share files over WiFi via Qr Code
- Host: GitHub
- URL: https://github.com/prdpx7/go-fileserver
- Owner: prdpx7
- License: mit
- Created: 2020-07-24T16:50:18.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-06T12:55:16.000Z (over 3 years ago)
- Last Synced: 2024-06-20T16:43:03.408Z (3 months ago)
- Topics: cli, go, golang-package, http-server
- Language: Go
- Homepage:
- Size: 20.7 MB
- Stars: 76
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-fileserver
> A simple HTTP server to share files over WiFi via QRCode# Installation
* You can download compressed version from [releases](https://github.com/prdpx7/go-fileserver/releases)
```
wget https://github.com/prdpx7/go-fileserver/releases/download/v0.1/fs-server-2020.07.25.tar.gz
tar -xzf fs-server-2020.07.25.tar.gz
chmod +x fs-server && sudo cp fs-server /usr/local/bin/fs-server
```
* Or download the binary directly
```
wget https://github.com/prdpx7/go-fileserver/releases/download/v0.1/fs-server
chmod +x fs-server && sudo cp fs-server /usr/local/bin/fs-server
```* Or you can clone from GitHub and build the binary yourself
```
git clone https://github.com/prdpx7/go-fileserver --depth=1
cd go-fileserver/fs-server
# requires go 1.14
go build
# make binary executable
chmod +x ./fs-server
# may require root permission
cp fs-server /usr/local/bin/fs-server
```
# Usage
```
fs-server - A simple HTTP Server to share files on a network.
Usage: fs-server [OPTIONS]
Options:
-h | --help - show this message
Example:
fs-server - serve files from current directory
fs-server /home/user/documents/ - serve files from given directory
```
# Demo### Step 1 - Run in terminal
### Step 2 - Scan QRCode on Phone
# Inspiration
* Inspired from [http-server](https://github.com/http-party/http-server) project# License
* MIT