scriptFolder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

scriptParentFolder="$(dirname "$scriptFolder")"

nodeModulesFolder="$scriptParentFolder"/node_modules


if [ ! -d "$nodeModulesFolder" ]; then
    cd "$scriptParentFolder";npm install;cd "$projectFolder"
fi

cd $scriptFolder;cd ..;node ./server/server.js