comparison d3s_examples/python-neo4jrestclient/README.adoc @ 8:18ef6948d689

new d3s examples
author Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
date Thu, 01 Oct 2015 17:17:27 +0200
parents
children
comparison
equal deleted inserted replaced
7:45dad9e38c82 8:18ef6948d689
1 == Neo4j Movies Example Application - The neo4jrestclient Edition
2
3 === Stack
4
5 * https://github.com/versae/neo4j-rest-client[neo4jrestclient] - Neo4j Python driver
6 * http://flask.pocoo.org/[Flask] - Python microframework based on Werkzeug, Jinja 2 and good intentions.
7 * Neo4j-Server
8 * Frontend: jquery, bootstrap, http://d3js.org/[d3.js]
9
10
11 === Setup
12
13 First get yourself setup with link:http://docs.python-guide.org/en/latest/dev/virtualenvs/[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:
14
15 [source]
16 ----
17 $ virtualenv neo4jrestclient-movies
18 $ source neo4jrestclient-movies/bin/activate
19 ----
20
21 The next step is to install the dependencies for the app:
22
23 [source]
24 ----
25 (neo4jrestclient-movies)$ pip install -r requirements.txt
26 ----
27
28 === Run locally
29
30 Start your local Neo4j Server (http://neo4j.com/download[Download & Install]), open the http://localhost:7474[Neo4j Browser]. Then install the Movies data-set with `:play movies`, click the statement, and hit the triangular "Run" button.
31
32 And finally let's start up a Flask web server:
33
34 [source]
35 ----
36 (neo4jrestclient-movies)$ python movies.py
37 * Running on http://127.0.0.1:8080/
38 ----
39
40 Navigate to http://localhost:8080 and you should see your first Neo4j application