snakehack-go

command module
v0.0.0-...-00d19b3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

README

snakehack-go

A basic snakehack starter kit written in go.

How to start

  1. Fork this repo.

  2. Clone repo to your development environment:

git clone git@github.com:USERNAME/snakehack-go.git $GOPATH/github.com/USERNAME/snakehack-go
cd $GOPATH/github.com/USERNAME/snakehack-go
  1. Compile the snakehack-go server.
go build

This will create a snakehack-go executable.

  1. Modify your configuration file

  2. Run the server.

./snakehack-go
  1. Test the client in your browser: http://127.0.0.1:4242

Heroku

Deploy

Heroku-cli commands

download heroku cli https://devcenter.heroku.com/articles/getting-started-with-go#set-up

login to heroku

heroku login

create new heroku app, --region eu is important for fast enough response times

heroku create [APP_NAME] --region eu

push to heroku

git push heroku master

delete heroku git

git remote rm heroku

govendor

govendor is used for dependency management

  1. install or update govendor
go get -u github.com/kardianos/govendor
  1. add to project
govendor init

This creates a vendor/ directory and a vendor.json file in that directory.

  1. adding dependencies
govendor fetch <package>
  1. list status
govendor list

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