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
GOPATHvariable to the directory that you want your source files go to. (For example if you are working in/tmp/dragonfruitdoexport GOPATH=/tmp/dragonfruit.) - Add
GOPATH/binto yourPATHvariable.export PATH = $PATH:$GOPATH/bin
- Get
govendorto handle dependencies:go get -u github.com/kardianos/govendor(Note: Don't putgit://orhttp://in front ofgithub.comhere.) - Get the source code:
go get github.com/dragonfruit-api/dragonfruit-cli - Change to the
dragonfruit-clidirectory and then synchronize the dependencies withgovendor sync. - Install the binary:
go install. The binary will now be in your$GOPATH/binfolder 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/binor something.
- Type
couchdb -bto start CouchDB curl -X PUT http://localhost:5984/swagger_docs: This creates the swagger doc database- Copy
/etc/dragonfruit.confto/usr/local/etc/dragonfruit.conf.
