2017-06-09 15:28:18 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-07-13 02:17:26 +08:00
|
|
|
set -e
|
|
|
|
|
2017-06-09 15:28:18 +08:00
|
|
|
NODE=nodejs
|
|
|
|
NPM=npm
|
|
|
|
|
|
|
|
if ! which $NODE >/dev/null; then
|
|
|
|
echo "Please install Node.JS!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ! which $NPM >/dev/null; then
|
|
|
|
echo "Please install NPM!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2017-07-13 02:17:26 +08:00
|
|
|
$NPM install neo4j-driver
|
|
|
|
|
|
|
|
$NODE basic.js
|
|
|
|
$NODE max_query_length.js
|