Vue.js and Go example project
Clone or download
Latest commit 731224a Jan 2, 2019

README.md

Vue.js and Go example project

Mathematical operations with Go (Golang) and Vue.js. See the demo (you may need to wait 30 seconds).

Features

  • Create random data
  • Get calculations from Go backend
  • Uses in-memory persistence

Installation

Backend

Get the dep dependency tool and gin, a live reload utility. We also need Gonum for the statistical calculations.

$ go get -u gonum.org/v1/gonum/...
$ go get github.com/codegangsta/gin

Fetch all dependent packages.

$ dep ensure

Start the server.

$ gin run main.go

Frontend

Install dependencies.

$ cd client && npm i

Start the server.

$ npm run serve

Now navigate to the provided URL.

Usage

First, investigate the specs. Second, create some random data points and persist them in-memory. Now get some basic calculations or a distribution chart.

Author

Julian Claus and contributors.

License

MIT