0

nodejs configuration to serve vuejs/react whatever website local on brightsign player

i'm trying to get a modern website (vuejs) up and running on a brighsgn player.

if I call the url on an external server, it works wonderfully.

when i call up the local project on a windows pc, the structure looks like this:

folder: nodemodule
folder: site
index.js
package.json


a simple express server is integrated within the index.js file

const express = require('express');
const path = require('path');

const hostname = 'localhost';
const port = 3000;

const app = express();
app.use(express.static(path.join(__dirname, 'site')));

app.get('*', (req, res) => {
  res.sendFile(__dirname, '/site/index.html');
});

app.listen(port, hostname, () => {
  console.log("Listening at http://%s:%s/", hostname, port);
});

ok, then the file is called with node index.js and i can call the page on localport:3000.

how can I implement this with node.js on the brightsign? I've read everything I can about it, but I don't understand how it should be configured

0 comments

Please sign in to leave a comment.