goBrowserQuest

command module
v0.0.0-...-ab6c4a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2018 License: MPL-2.0 Imports: 6 Imported by: 0

README

goBrowserQuest server documentation

go implementation for BrowserQuest server

Installation

go get github.com/SineYuan/goBrowserQuest

Configuration

  -config string
        configuration file path (default "./config.json")
  -client string
        BrowserQuest root directory to serve if provided
  -prefix string
        request url prefix when client is provided, cannot be '/'  (default "/game")

Deployment

client
git clone https://github.com/mozilla/BrowserQuest.git

cp BrowserQuest/client/config/config_local.json-dist BrowserQuest/client/config/config_local.json 

edit BrowserQuest/client/config/config_local.json to set server host and port.

server
cd $GOPATH/src/github.com/SineYuan/goBrowserQuest
go build main.go
./main -config /path/to/config.json -client /path/to/BrowserQuest 

then you can play game at http://{HOST}:{PORT}/game/client/index.html

TODO

goBrowserQuest have yet to implement all the function of BrowserQuest server. welcome to forks

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL