mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-05 17:30:44 +08:00
9 lines
500 B
Markdown
9 lines
500 B
Markdown
# GarageServer.IO Example
|
|
A sample application using GarageServer.IO
|
|
|
|
## Install
|
|
|
|
Change the `path` parameter of `GarageServerIO.initializeGarageServer` that is found in file, `/public/javascripts/game.js`, to point to the URL where your Node app runs. I.e. `http://127.0.0.1:3000`. Note that the example app uses a default port of `process.env.PORT || 3000`. This can be changed in `app.js`.
|
|
|
|
|
|
Execute `$ npm install` in the `example/` root directory and `$ node app.js` to run the application. |