Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

bobbbay/GoServe

Repository files navigation

GoServe

Demo    |    Install    |    Use    |    Todo    |    Contribute

Quickly serve static sites in Go. You don't need to have Golang installed, nor do you need to know any Go! Just use the speed of Go to your advantage.

Demo

asciicast

What is this?

GoServe is a quick, 1-dep (Golang) serving utility, making anyone serve locally easily and quickly, especially since you have the speed of Go on your side! Absolutely NO knowledge of Go is needed to use. Just run make and it will do the rest!

Install

Dependencies

Actually, I lied. You need git to install. Sorry 😏😁.

If you don't have Golang installed, you will also need curl and wget.

Just get it

I don't have Golang installed

NOTE: Your version of GoServe may be old. The most updated precompiled binary is the x86_64 binary. Run

wget -q raw.githubusercontent.com/Bobbbay/GoServe/master/install.sh -O - | bash

And you're done!

I have Golang installed

Run

git clone https://github.com/Bobbbay/GoServe.git

That's Bobbbay with THREE b's

Start

To begin, just run

cd GoServe

Then

sudo go run main.go

Common problems

I don't have sudo permissions

If you don't have sudo permissions, then you can't serve ports under 1024. This means you cannot serve the default port, 80. You can still serve any valid port above 1024. Some comonly known are 8080 and 1234.

Update

Just run

make update

TODO

A lot.

  • Asciinema at the top => .gif in this README
  • WAYYYYY more commenting main.go
  • Translate README?
  • More Asciinema vids

Contribute

HELP! Don't hesitate to open issues and PRs (please)! We only support armv7l and x86_64 at the moment for pre-compiled binaries. Any additional binaries would be greatly appreciated!