gotris

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

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

Go to latest
Published: Dec 18, 2017 License: MIT Imports: 7 Imported by: 0

README

gotris

Source code of http://tetris.56k.guru.

Server side Tetris implementation written in go with lazy HTML5 client.

Development setup

Make sure you have a running local instance of MongoDB, and that Go is installed

cd <your workspace path>
mkdir -p src/github.com/hexagon
cd src/github.com/hexagon
git clone https://github.com/Hexagon/gotris.git
cd gotris
go get -v

Start with local MongoDB instance

GOTRIS_ASSETS=./assets go run main.go

Start with remote MongoDB instance

GOTRIS_MONGO_ADDR=172.18.0.16 GOTRIS_ASSETS=./assets go run main.go

Game will now be available at

http://127.0.0.1:8080

Available environment variables

Variable Default
GOTRIS_MONGO_ADDR 127.0.0.1:27017
GOTRIS_MONGO_USER -
GOTRIS_MONGO_PASS -
GOTRIS_MONGO_DB gotris
GOTRIS_PORT 8080
GOTRIS_ASSETS -

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