My first web project.
A two players minesweeper game. Version 1.1.
Clone inside github.com/flagz
in your GOPATH
. Run go run main.go conn.go hub.go game.go
inside github.com/flagz/src
.
You will need the next packages:
go get github.com/gorilla/mux
go get github.com/gorilla/websocket
go get github.com/go-sql-driver/mysql
go get github.com/apexskier/httpauth
. I changed some things here:- Comment line 137-140 in
github.com/apexskier/httpauth/auth.go
. - You must replace the file
github.com/apexskier/httpauth/sqlBackend.go
withgithub.com/flagz/src/sqlBackend/sqlBackend.go
- Comment line 137-140 in
Must have installed mysql
. Create a database named flagz
and give all permissions to the user: david:david123
. Or you could change the variable backenddb
inside main.go