Legacy app is located in the legacy subfolder of the traccar-web repository. You should run all the following commands from that subfolder.
This document provides information on how to build a minified version of the legacy ExtJS-based web app. Instuctions are provided for Ubuntu 20.04 operating system. If you are using different OS, you might need to adjust some commands. You can also use a VPS or a virtual machine with Ubuntu 20.04 to use commands as is.
First, make sure you have Sencha Cmd installed and added to the path. You can download it from the official Sencha website.
Install other requires tools and dependencies available from Ubuntu repo:
sudo add-apt-repository ppa:openjdk-r/ppa curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - sudo apt update sudo apt install -y git openjdk-11-jdk unzip nodejs
Install project dependencies. This will copy all third party libraries into the web folder:
npm install
Now you can compile a minified version of the Traccar app:
npm run build
The output will be the app.min.js file in the web folder.