- Node.js (v18 or later recommended)
- npm (v9 or later recommended)
npm install
npm run devnpm run build
npm run startpm2 start npm --name "web-labs" -- run startpm2 startup
pm2 save# Restart
pm2 restart web-labs
# Stop
pm2 stop web-labs
# Start
pm2 start web-labsIf you want to change the port or other environment variables, delete the process and re-register:
pm2 delete web-labs
PORT=NEW_PORT pm2 start npm --name "web-labs" -- run start
pm2 save