gentics / mesh-go-example

Gentics Mesh Go Example

Home Page:https://getmesh.io/Blog/How%20to%20build%20a%20website%20with%20Go%20and%20API-first%20CMS%20Gentics%20Mesh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gentics Mesh Go Example

This example combines Gentics Mesh with Golang. It uses GJSON to easily access arbitrary JSON values and a litte bit of the Gorilla toolkit for HTTP routing and logging.

Download and setup

Make sure you have go installed and set up.

# Download example and change to directory
go get github.com/gentics/mesh-go-example

# Download Gentics Mesh from http://getmesh.io/Download and start it in another terminal
java -jar mesh-demo-0.9.xx.jar

Running the example

# Change to repository directory
cd $GOPATH/src/github.com/gentics/mesh-go-example

# Start the example and point your Browser to http://localhost:8081/
go run main.go