Start and play !

$ npm start

You can now play with OpenParty and loaded gameplays in your web browser.

If you are running the server locally, you can test with http://localhost:3040. To stop the server, just kill it with CTRL+C keys.

Auto-restart on fail

You can use the forever module to automatically restart OpenParty on crash. More over, it’s an easy way to restart your application after an upgrade. Forever will run OpenParty silently in the background.

To install it:

$ su root
# npm install -g forever

To start your application in the background:

$ forever start --killSignal=SIGINT app.js

To restart or stop it:

$ forever restart app.js
$ forever stop app.js

Use nginx as a proxy


You’ll need nginx v1.3.13 or higher to use it as a proxy for OpenParty.

Here is an example of a basic config file for nginx, assuming OpenParty is running on port 3040.

server {
  listen 80;


  location / {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_set_header X-NginX-Proxy true;
    proxy_redirect off;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";