From 2a4aed58f88f467f9f81e96522ad72e792bb2a82 Mon Sep 17 00:00:00 2001 From: Johan Lundström Date: Tue, 6 Dec 2011 12:53:55 +0100 Subject: Neo4j: caveats for getting started. Signed-off-by: Adam Vandenberg --- Library/Formula/neo4j.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'Library') diff --git a/Library/Formula/neo4j.rb b/Library/Formula/neo4j.rb index 60c9332a8..52132109e 100644 --- a/Library/Formula/neo4j.rb +++ b/Library/Formula/neo4j.rb @@ -21,4 +21,31 @@ class Neo4j < Formula ln_s "#{libexec}/bin/neo4j", bin+"neo4j" ln_s "#{libexec}/bin/neo4j-shell", bin+"neo4j-shell" end + + def caveats; <<-EOS.undent + Quick-start guide: + + 1. Start the server manually: + neo4j start + + 2. Open webadmin: + open http://localhost:7474/webadmin/ + + 3. Start exploring the REST API: + curl -v http://localhost:7474/db/data/ + + 4. Stop: + neo4j stop + + To launch on startup, install launchd-agent to ~/Library/LaunchAgents/ with: + neo4j install + + If this is an upgrade, see: + #{libexec}/UPGRADE.txt + + The manual can be found in: + #{libexec}/doc/ + + EOS + end end -- cgit v1.2.3