neo4j-examples/golang-bolt-movie-example

Name: golang-bolt-movie-example

Owner: Neo4j Examples

Description: Movie example for the golang neo4j bolt driver

Forked from: johnnadratowski/golang-bolt-movie-example

Created: 2016-10-02 22:33:13.0

Updated: 2018-05-08 12:35:02.0

Pushed: 2016-08-16 04:55:49.0

Homepage: null

Size: 48

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Neo4j Movies Example Application

Shamelessly modified from https://github.com/neo4j-examples/movies-go-cq

Stack
Endpoints:

Get Movie

ON object for single movie with cast
 http://bolt-neo4j-movies.herokuapp.com/movie/The%20Matrix

st of JSON objects for movie search results
 http://bolt-neo4j-movies.herokuapp.com/search?q=matrix

ON object for whole graph viz (nodes, links - arrays)
 http://bolt-neo4j-movies.herokuapp.com/graph
Setup

This uses the Go standard library HTTP server, along with the Golang Neo4j Bolt Driver library.

Run locally:

Start your local Neo4j Server Download & Install, open the Neo4j Browser. Then install the Movies data-set with :play movies, click the statement, and hit the triangular “Run” button.

Start this application with:

J_URL=bolt://localhost:7687/ PORT=8080 go run server.go

Go to http://localhost:8080

You can search for movies by title or and click on any entry.

Deploy to Heroku

eate a new app with the go buildpack
ku create -b https://github.com/kr/heroku-buildpack-go.git

 sure to set your NEO4J_URL in the Heroku configs.
used GrapheneDB to host the Neo4j instance 

sh to heroku
push heroku master

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.