Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 3.28 KB

examples.md

File metadata and controls

48 lines (31 loc) · 3.28 KB

Examples

Live Examples

Each of these examples are separate web applications, the source for which can be found here.

The sites use various example components that can be found in sub directories beneath here.

Get examples working locally

Requires:

  • A working Go installation (at least 1.7)

First:

go get -u myitcv.io/react/examples

# amend GOPATH and PATH to use the vendored code
export GOPATH="$(go list -f '{{.Dir}}' myitcv.io/react)/_vendor:$GOPATH"
export PATH="$(go list -f '{{.Dir}}' myitcv.io/react)/_vendor/bin:$PATH"

go install github.com/gopherjs/gopherjs

cd "$(go list -f '{{.Dir}}' myitcv.io/react)/examples/sites"

gopherjs serve

Each of the sites under sites/ are now available via http://localhost:8080/myitcv.io/react/examples/sites