• Stars
    star
    711
  • Rank 63,679 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Vue.js and Go example project

Vue.js and Go example project

Mathematical operations with Go (Golang) and Vue.js.

Features

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

Installation

Backend

You need at least Go 1.11 which includes module support. You don't have to place this application into the GOPATH! Dependencies are defined inside go.mod. To start the server, simply enter:

$ go run cmd/main.go 

This will fetch all dependencies automatically and starts the server at port 3000. The clients target port is also set to 3000. You can change the clients port at web/vue.config.js.

Frontend

Install the dependencies.

$ npm i

Start the server.

$ npm run serve

Now navigate to the provided URL.

Docker

Make sure you have Docker engine 18.06.0 or higher installed. You can start the server and the client with:

$ docker-compose up

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.

Build

To build everything simply use make (nmake for Windows).

Server

Its possible to use go build -o bin/vue-go-example cmd/main.go or use make build_server. Both creates a binary inside bin with name vue-go-example.

Client

You can either build the client with make build_client or you go the client directory and enter npm run build (or with yarn: yarn build). Both builds the application and moves it into website.

Author

Julian Claus and contributors.

License

MIT

More Repositories

1

vue-sails-example

NOT MAINTAINED Vue.js with Sails.js example project with many features
JavaScript
297
star
2

vue-command

A fully working, most feature-rich Vue.js terminal emulator. Now with Vue.js 3 support!
Vue
240
star
3

nuxt-express-example

NOT MAINTAINED Nuxt.js with Express.js example project
JavaScript
23
star
4

vue-best-practises

NOT MAINTAINED These recommendations should give you assistance to use Vue.js in a progressive and future-orientated way
20
star
5

vuex-cli-scaffold

NOT MAINTAINED Scaffold vuex actions, mutations, getters and the state
JavaScript
18
star
6

plotly-js-material-design-theme

NOT MAINTAINED Plotly.js charts with Material Design theme
JavaScript
14
star
7

ping-pong

Retro game pong written in Go and Websocket as transport
Go
12
star
8

assocentity

Package assocentity returns the mean distance from tokens to an entity and its synonyms
Go
11
star
9

mongodb-pipeline-factory

NOT MAINTAINED Generate MongoDB pipelines with ease
TypeScript
4
star
10

entityscrape

Social experiment: Mean distance between part of speeches in news articles and entities
Go
3
star
11

open-source-base

A base application for open source projects
3
star
12

joi-intersection

NOT MAINTAINED Validate against intersections of arrays and array singletons
JavaScript
3
star
13

ndabAP

2
star
14

lorenz-curve

NOT MAINTAINED Get the lorenz curve of a given data set
JavaScript
2
star
15

mongo-db-grundlagen

This German presentation shows an introduction into MongoDB
2
star
16

vue-presentation

German presentation why to prefer Vue.js over React and Angular
CSS
1
star
17

vue-test-utils-props-update-issue

HTML
1
star
18

esm-babel-plugin-module-resolver-issue

See https://github.com/standard-things/esm/issues/810
JavaScript
1
star
19

visual-studio-code-settings

1
star