From bc51cc8f428d86f45f74b2d3eb7315dc8e51021a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 21 Sep 2018 22:56:25 -0600 Subject: [PATCH] "fileb0x for Dummies", more or less --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index e402893..4554cea 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,27 @@ MIT ### Get Started +###### TL;DR QuickStart™ + +Here's the get-you-going in 30 seconds or less: + +```bash +git clone https://github.com/UnnoTed/fileb0x.git +cd fileb0x +cd _example/simple +go generate +go build +./simple +``` + +* `mod.go` defines the package as `example.com/foo/simple` +* `b0x.yaml` defines the sub-package `static` from the folder `public` +* `main.go` includes the comment `//go:generate go run github.com/UnnoTed/fileb0x b0x.yaml` +* `main.go` also includes the import `example.com/foo/simple/static` +* `go generate` locally installs `fileb0x` which generates `./static` according to `bax.yaml` +* `go build` creates the binary `simple` from `package main` in the current folder +* `./simple` runs the self-contained standalone webserver with built-in files from `public` +
How to use it?