destrib-graph

command module
v0.0.0-...-27f5dbf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Destributed Graph

A highly-destributed graph using arango db graph for directed data.

CircleCI Maintainability Test Coverage

Install

go install github.com/dgoldstein1/destrib-graph

or

docker pull dgoldstein1/destrib-graph:latest

Run it

export GRAPH_DB_STORE_PORT="5001" # port served on
export GRAPH_DOCS_DIR="./api/*" # location of docs (warning: this entire dir is served up to the browser)
export GRAPH_DB_NAME="arango_graphs" # name of database in arango
export GRAPH_DB_ARANGO_ENDPOINT="http://localhost:8529" #arango db endpoint
./destrib-graph server
# make a test request
curl -X POST -H 'Content-Type:application/json' http://localhost:5001/edges?node=test2 -d '{"neighbors" : ["test1"]}'
curl localhost:5001/edges?node=test2

Dependencies

  • arangoDB version 3.5

Development

Local Development
./watch_dev_changes.sh
Testing
go test ./... -coverprofile=coverage.out
# to see coverage:
go tool cover -html=coverage.out

Generating New Documentation

pip install PyYAML
python api/swagger-yaml-to-html.py < api/swagger.yml > api/index.html

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址