-
Notifications
You must be signed in to change notification settings - Fork 3
Running with Node MongoDB
Setup node.js http://nodejs.org/download/
Setup mongodb http://www.mongodb.org/downloads
Checkout the source and download dependencies
git clone https://github.com/rSimulate/WebHexPlanet.git
cd WebHexPlanet
npm install
Serve up the web application
node web.js
Setup and run https://github.com/rSimulate/terrainReferenceEngine and https://github.com/rSimulate/agentReferenceEngine
Navigate to localhost:9292
Rather than start these one by one, I made a way to turn these all on at once. There might be a more elegant way to do this, but I just clumped together something basic.
Make one file metasim.bat
`@echo off :start echo Starting web.js nodes!
start "window1" /min cmd.exe /c webhexplanet.bat
start "window2" /min cmd.exe /c terrainRE.bat
start "window3" /min cmd.exe /c agentRE.bat
start "window4" /min cmd.exe /c bodiesRE.bat
start "window5" /min cmd.exe /c cloudRE.bat`
Then for each of the above lines, create the associated child bat:
`@echo off
:start
echo Starting cloud reference engine web.js node!
cd C:\Users\iontom\Documents\GitHub\cloudReferenceEngine
:: npm install
node web.js`
I found it's easier to run the npm installs separately. Please let me know if there is better way!