IMDB Setup
From NeoWiki
As you probably want to set up the application and run it, some instructions for this are found here.
Contents |
[edit] Prerequisites
- Sun Java JDK 1.5+
- Maven 2
No previous exposure to Maven? No problem at all, you'll just have to install it and follow the instructions. We already configured everything for you.
[edit] The fast track
To get started really quick, issue the following at the command prompt:
mkdir imdb && cd imdb && mvn scm:checkout -DconnectionUrl=scm:svn:https://svn.neo4j.org/examples/imdb/trunk/ && cd target/checkout && mvn jetty:run &
Feed your browser this location:
http://localhost:8080/imdb/setup.html
The application should now be up and running. To stop it, use mvn jetty:stop from the same location (imdb/target/checkout).
[edit] Setup the project
Now, lets go through things more in detail if you like to. Or just go on to IMDB The Domain.
- Download the application from the repository : http://m2.neo4j.org/org/neo4j/examples/imdb/
- You need a file named
imdb-{version info}-src.tar.gzorimdb-{version info}-src.zip - Unpack the file,
cdinto the directory. - Make sure everything compiles:
$ mvn [INFO] Scanning for projects... ... <lots and lots of download spam> ... [INFO] BUILD SUCCESSFUL ... $
[edit] Running the application
-
mvn jetty:run - browse to
http://localhost:8080/imdb/setup.html - run the data injection from the page
- only inject the data once!
- the port number is set in pom.xml, if you want to change it
-
mvn jetty:stopis used to stop the service
If you are using the Eclispe IDE m2eclipse plug-in, the run configuration for the first Maven goal would look like this:
[edit] Suggested development environment
We found these tools to be useful for developing this application.
- Eclipse 3.4 (Ganymede) (the Java EE package includes Web Tools)
- Eclipse Maven2 plugin (includes its own Maven 2)
- Spring IDE
As for OS, we have tested the application under Ubuntu, Windows Vista (doable, but not recommended!) and some other systems.
Next part: IMDB The Domain Index page: overview


