Skip to content

ExecuteVueAppOnLinux

Oren Mishali edited this page Aug 25, 2022 · 4 revisions

Install and Execute a Vue.JS App on Linux

sudo npm install -g @vue/cli
  • Install http-server (for serving the vue app)
sudo npm install http-server -g
  • Now clone the project, install dependencies, build and run the server.
git clone https://github.com/TechnionTDK/tanach-explorer-frontend.git
cd tanach-explorer-frontend
npm install # install dependencies
npm run build # build app to dist/ directory
screen
http-server dist/ # defaults to 8080, to change use e.g. sudo http-server -p 80 dist/ (sudo for non user ports)
  • A better and more secure option is to run on port 80 as a regular user:
sudo touch /etc/authbind/byport/80
sudo chmod 777 /etc/authbind/byport/80
authbind --deep http-server -p 80 dist/

(Taken from this link).

Clone this wiki locally