-
clean and BuildFrondend application from Apache Netbeans. -
Copy executable jar fil and lib folder from
distfolder and paste them toFrontendfolder in installer. -
Copy
rest_api.pyfile,best.ptmodel andrequirements.txtfromTrack and count system/RestApiand paste them toTrack and Count System/RestApifolder in installer. -
Copy
web_socket.pyfile,best.ptmodel andrequirements.txtfromTrack and count system/WebSocketand paste them toTrack and Count System/WebSocketfolder in installer. -
- Copy
rest_api.pyfile,best.ptmodel andrequirements.txtfromTrack and count system/RestApi_continueand paste them toTrack and Count System/RestApi_continuefolder in installer.
- Copy
-
From
Track and Count System/RestApidirectory run,
python -m venv venvvenv\Scripts\activatepip install -r requirements.txt
-
Create
TCS_RestApi.batfile.@echo off REM Change directory to where your virtual environment and app.py are located cd %~dp0 REM Activate the virtual environment call venv\Scripts\activate REM Run the Python script python rest_api.py REM Pause the command prompt so you can see any output before it closes pause -
from
Track and Count System/WebSocketdirectory run,
python -m venv venvvenv\Scripts\activatepip install -r requirements.txt
-
Create
TCS_WebSocket.batfile.@echo off REM Change directory to where your virtual environment and app.py are located cd %~dp0 REM Activate the virtual environment call venv\Scripts\activate REM Run the Python script python web_socket.py REM Pause the command prompt so you can see any output before it closes pause -
From
Track and Count System/RestApi_continuedirectory run,
python -m venv venvvenv\Scripts\activatepip install -r requirements.txt
-
Create
TCS_RestApi_continue.batfile.@echo off REM Change directory to where your virtual environment and app.py are located cd %~dp0 REM Activate the virtual environment call venv\Scripts\activate REM Run the Python script python rest_api.py REM Pause the command prompt so you can see any output before it closes pause -
Add
Project Argus.batfile to root directory.@echo off start "" "Frontend/ProjectArgus.jar" start "" "Track and Count System/RestApi/TCS_RestApi.bat" start "" "Track and Count System/WebSocket/TCS_WebSocket.bat" start "" "Track and Count System/WebSocket/TCS_RestApi_continue.bat" -
Add
setup.issfile to root directory and compile it using inno setup compiler.[Setup] AppName=Project Argus AppVersion=1.0 DefaultDirName={pf}\Project Argus DefaultGroupName=Project Argus OutputDir=Output Compression=lzma SolidCompression=yes OutputBaseFilename=Project Argus Installer [Files] Source: "Project Argus.bat"; DestDir: "{app}" Source: "Frontend\*"; DestDir: "{app}\Frontend"; Flags: recursesubdirs Source: "Track and Count System\*"; DestDir: "{app}\Track and Count System"; Flags: recursesubdirs [Icons] Name: "{group}\Project Argus"; Filename: "{app}\Project Argus.bat" -
It will create
outputfolder and it includeProject Argus Installer.exe. -
Install
Python 3.11.5in target machine. -
Install the setup and run
Project Argus.bat.
- clone
https://github.com/FYP-Event-tracking/Backend-Argusanddocker-compose up --build.