Git Product home page Git Product logo

movies-go-cq's Introduction

Neo4j Movies Example Application

Stack

  • Go

  • cq

  • Neo4j-Server

  • Frontend: jquery, bootstrap, d3.js

Endpoints:

Get Movie

// JSON object for single movie with cast
curl http://cq-neo4j-movies.herokuapp.com/movie/The%20Matrix

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

// JSON object for whole graph viz (nodes, links - arrays)
curl http://cq-neo4j-movies.herokuapp.com/graph

Setup

This uses the Go standard library HTTP server, along with the cq library, and a mix of standard database/sql and jmoiron/sqlx functionality.

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:

PORT=8080 go run server.go

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

Deploy to Heroku

# create a new app with the go buildpack
heroku create -b https://github.com/kr/heroku-buildpack-go.git
# add the graphenedb addon
heroku addons:add graphenedb:chalk

# create a procfile (cq-example should be replaced with whatever go build creates)
echo 'web: cq-example' > Procfile

# install godep
go get github.com/kr/godep
# save deps (do this whenever you update your 3rd party libs)
godep save

# commit
git commit -a -m 'Heroku / deps'
# push to heroku
git push heroku master

movies-go-cq's People

Contributors

genez avatar jexp avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.