Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
make it easier to launch magic matta
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Jul 2, 2019
1 parent 3940ead commit 16231a9
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
27 changes: 27 additions & 0 deletions launch.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
:: This is a convenience launcher for Windows assuming:
:: (1) SteamVR is installed and configured properly via Steam
:: (2) You've already run npm install on project root directory and server/ directory
:: (3) You've already compiled a compatible version of exokit in ../exokit/
:: (4) You understand how to configure the rest of this project.
::
:: Make it fancy by creating a shortcut on your desktop with a pretty icon linking to this batch file.

:: Open code editor, default is Atom
start /b atom .

:: Open SteamVR
start /b explorer "steam://rungameid/250820"

:: Start Web Host
start npm start

:: Start Socket Server
cd server
start npm start

:: Start Browser after delay because web host isn't ready yet
cd ..\..\exokit
ping -n 10 127.0.0.1
node . -x webvr http://localhost:3000

exit
7 changes: 7 additions & 0 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@ io.on('connection', function (socket) {
// console.log(data);
});
});

console.log("Yo, there's some important information you should know.");
console.log("For instance, what's your IP?");

require('dns').lookup(require('os').hostname(), function (err, add, fam) {
console.log('Listening on "http://' + add + ':' + port + '"');
})
13 changes: 13 additions & 0 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 16231a9

Please sign in to comment.