This is a command-line wrapper for Dragonfruit, a data-model and API prototyping tool, using CouchDB as a backend data store.
In a terminal, run install.sh
from the root directory of this folder.
See Building from Source for now.
See Building from Source for now.
You will need the following:
- Set your
GOPATH
variable to the directory that you want your source files go to. (For example if you are working in/tmp/dragonfruit
doexport GOPATH=/tmp/dragonfruit
.) - Add
GOPATH/bin
to yourPATH
variable.export PATH = $PATH:$GOPATH/bin
- Get
govendor
to handle dependencies:go get -u github.com/kardianos/govendor
(Note: Don't putgit://
orhttp://
in front ofgithub.com
here.) - Get the source code:
go get github.com/dragonfruit-api/dragonfruit-cli
- Change to the
dragonfruit-cli
directory and then synchronize the dependencies withgovendor sync
. - Install the binary:
go install
. The binary will now be in your$GOPATH/bin
folder and will be calleddragonfruit-cli
. - You can now copy the binary somewhere. If you want to rename it to
dragonfruit
, have a ball. You could also save it to/usr/local/bin
or something.
- Type
couchdb -b
to start CouchDB curl -X PUT http://localhost:5984/swagger_docs
: This creates the swagger doc database- Copy
/etc/dragonfruit.conf
to/usr/local/etc/dragonfruit.conf
.