- Run
npm i vue-chartjs
- Run
npm i chart.js hchs-vue-charts
- Create a file called chart.js and save it in the /plugins directory
- Give chart.js the following contents
import Vue from 'vue'
import { Line } from 'vue-chartjs'
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"syscall" | |
) | |
func main() { |
var express = require('express'); | |
var expressWs = require('express-ws'); | |
var expressWs = expressWs(express()); | |
var app = expressWs.app; | |
app.use(express.static('public')); | |
var aWss = expressWs.getWss('/'); | |
app.ws('/', function(ws, req) { |