Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 959 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 959 Bytes

user-dashboard

ITF User Settings Web App

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

Deploy on Heroku

  1. Create the server.js file in the root directory in order to serve the /dist folder through a simple express server
var express = require('express');
var path = require('path');
var serveStatic = require('serve-static');

app = express();
app.use(serveStatic(__dirname + "/dist"));
var port = process.env.PORT || 5000;
app.listen(port);
console.log('server started ' + port);
  1. Add the Procfile
web: node server.js

For a detailed explanation on how things work, check out the guide and docs for vue-loader.