yongdchan / movies-python-bolt

Neo4j Example application with flask backend using the neo4j-python-driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Neo4j Movies Example Application - The neo4j-python-driver (Bolt) Edition

Stack

  • neo4j-python-driver - Neo4j Bolt Driver for Python

  • Flask - Python microframework based on Werkzeug, Jinja 2 and good intentions.

  • Neo4j-Server

  • Frontend: jquery, bootstrap, d3.js

Setup

First get yourself setup with virtualenv so we don’t break any other Python stuff you have on your machine. After you’ve got that installed let’s setup an environment for our app:

$ virtualenv neo4j-movies
$ source neo4j-movies/bin/activate

The next step is to install the dependencies for the app:

(neo4j-movies)$ pip install -r requirements.txt

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.

And finally let’s start up a Flask web server:

(neo4j-movies)$ export NEO4J_PASSWORD="my-password"
(neo4j-movies)$ python movies.py
 * Running on http://127.0.0.1:8080/

Navigate to http://localhost:8080 and you should see your first Neo4j application

About

Neo4j Example application with flask backend using the neo4j-python-driver


Languages

Language:HTML 91.9%Language:Python 8.1%