Provides api for SAM Inventory System.
It consists of 1 core component:
Inventory API requires Go
, Gorilla mux
and few other tools installed.
If you don't have Go
installed, follow installation instructions described here: http://golang.org/doc/install
If you don't have GoAppEngine
installed, follow installation instructions described here: https://cloud.google.com/appengine/docs/go/gettingstarted/devenvironment
Install dependencies
go get github.com/gorilla/mux
go get github.com/go-sql-driver/mysql
go get code.google.com/p/go-uuid/uuid
go get github.com/golang/glog
go get golang.org/x/net/context
go get golang.org/x/oauth2
go get google.golang.org/cloud/compute/metadata
go get google.golang.org/api/storage/v1
go get google.golang.org/appengine/urlfetch
Create a local config, and adjust to your environment
cp github.com/rolian85/inventory/config.json.default github.com/rolian85/inventory/config.json
And then run:
goapp serve
This means you can now direct your browser to localhost:8085
/controllers
All your controllers that serve defined routes.
/helpers
Helper functions.
/models
You database models.
app.go
This file starts your web application.