Skip to content

kenpratt/hyperspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyperspace

A real-time multiplayer space shooter.

Development

  • Run make to run a local copy at http://localhost:9393.

  • Run ./watch to run a local copy that auto-restarts when server files are changed (requires fswatch - brew install fswatch)

Installation

Add to Nginx configuration

Add to bottom of http block:

include /home/hyperspace/hyperspace/etc/nginx.conf;

Add systemd service:

sudo ln -s /home/hyperspace/hyperspace/etc/hyperspace.service /etc/systemd/system/
sudo systemctl start hyperspace

Add ability to restart server:

sudo EDITOR=emacs visudo
hyperspace ALL=(ALL) NOPASSWD: /home/hyperspace/hyperspace/bin/start
hyperspace ALL=(ALL) NOPASSWD: /home/hyperspace/hyperspace/bin/stop
hyperspace ALL=(ALL) NOPASSWD: /home/hyperspace/hyperspace/bin/restart

Add dependencies

go get github.com/gorilla/websocket
go get github.com/lucasb-eyer/go-colorful