GitHub - ndabAP/vue-go-example: Vue.js and Go example project
source link: https://github.com/ndabAP/vue-go-example
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
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
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK