diff --git a/Build-and-Test.md b/Build-and-Test.md new file mode 100644 index 0000000..98f0605 --- /dev/null +++ b/Build-and-Test.md @@ -0,0 +1,29 @@ +Building from the Go Language source code is pretty easy if you already have Go installed. Clone this repo and `cd` into it. + +### Git n' Go Get +```bash +git clone https://github.com/hunterlong/statup.git +cd statup +go get -v +``` + +### Install go.rice +Statup uses go.rice to compile HTML, JS, and CSS files into it's single binary output. +``` +go get github.com/GeertJohan/go.rice +go get github.com/GeertJohan/go.rice/rice +``` + +### Build Statup Binary +Statup uses go.rice to compile HTML, JS, and CSS files into it's single binary output. +``` +rice embed-go +go build -o statup . +./statup version +``` + +### Test Coverage +You can also test Statio on your localhost, but it does require a MySQL, and Postgres server to be accessible since testing does create/drop tables for multiple databases. +``` +go test -v +``` \ No newline at end of file