Express + Vue with front side rendering only.
🟩 Node. Tested on v13.2.0. Might work in different versions. Express server. Webpack builder. Templates express-es6-template-engine
Install node dependencies.
npm install
The .env file is optional. Variables can be set in the environment. Is useful while developing. Copy .env.sample file.
Run
npm run dev
Will listen for changes and rebuild when necessary. No "hot" reload in the browser yet.
Build assets. Will create final asset js files in /public/dist.
npm run build
Start production/staging server. Will create final asset js files in /public/dist.
npm run start
Get creds using certbot (temporarily).
sudo certbot certonly --standalone --preferred-challenges http -d somedomainexample.com npm run test
npm run test