Skip to content

suyundukov/go-chuck

Repository files navigation

go-chuck

Chuck Norris' random facts app in Go

How to run app locally ?

Before you get started make sure you have an up-to-date version of Go and Node, on macOS with Homebrew installed you can run :

$ brew install node
$ brew install go

After that you can run:

$ go get -d github.com/nurlansu/go-chuck
$ cd $GOPATH/src/github.com/nurlansu/go-chuck

If you haven't Wellington, you should install it on your computer by running :

$ go get -u github.com/wellington/wellington/wt

Now we can install all necessary node modules :

$ npm install

To build front-end stuff, you should run:

$ npm build

And at the end you can run the app using this command:

$ go run *.go

And that's all. Normally you could see the app running on http://localhost:8080

Dependencies

This app uses httprouter for routing.

Demo

The live version can be found on https://go-chuck.herokuapp.com/

License

MIT