Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
blakesmith committed Jul 6, 2012
1 parent 3e46462 commit 47c1ef0
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Skeeter for Go

This is a port of [skeeter](http://github.com/blakesmith/skeeter) to Go.

## Why?

The original skeeter implementation was built with ZeroMQ in Ruby and had seperate processes for each piece. Ensuring all the pieces were behaving correctly became a hassle, so I ported it to Go to get familiar with the net/http library in Go.

## Dependencies

See [Native Dependencies](https://github.com/blakesmith/skeeter#native-dependencies) from [skeeter](http://github.com/blakesmith/skeeter)

## Building

[Install Go](http://golang.org/doc/install)

Then run ```go run skeeter.go``` from within the skeeter directory.

To cross compile for linux 386 from OS X, I followed this wiki page to setup the compiler toolchain: http://code.google.com/p/go-wiki/wiki/WindowsCrossCompiling

Once that's setup, I ran:

```
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build skeeter.go
```

This generates the ```skeeter-go``` binary, which you run to start the web server.

## The Future

With the present design, ```curl``` ```convert``` and ```jp2a``` are used to process the image. I'd like to convert these to native Go code.

## Author

Skeeter is written by Blake Smith <[email protected]>.



2 changes: 1 addition & 1 deletion skeeter.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ func imageHandler(w http.ResponseWriter, r *http.Request) {

func main() {
http.HandleFunc("/", imageHandler)
http.ListenAndServe(":9000", nil)
http.ListenAndServe(":9001", nil)
}

0 comments on commit 47c1ef0

Please sign in to comment.