Created Build and Test (markdown)

master
Hunter Long 2018-06-24 20:57:53 -07:00
parent f0cb3f9aae
commit e6182e6e15
1 changed files with 29 additions and 0 deletions

29
Build-and-Test.md Normal file

@ -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
```