Steps:
Install XAMPP: For MySQL and Apache (if using the same setup).
Install Node.js: Download from nodejs.org (v22.13.1 or latest LTS).
Install Dependencies: In the project folder:
bash
Wrap
Copy
npm install express cors mysql2 axios https-proxy-agent geoip-lite
These are from server.js’s require statements.
Database Setup: Import the SQL dump into MySQL on the new server.
bash
Wrap
Copy
mysql -u root -p receipt_jar < backup.sql
Update Config: Ensure models/db.js matches the new server’s MySQL credentials.
Run: node server.js.
Additional Notes:
No extra plugins needed beyond Node.js and the listed npm packages.
If using a different OS (e.g., Linux), adjust file paths (e.g., image folder).

====================
Node.js: Install Node.js (v22.13.1 or compatible) on the new server.
XAMPP: Install XAMPP for MySQL (ensure MySQL runs on port 3306 or adjust db.js if different).
NPM Packages: Run npm install in the project folder to install dependencies (axios, form-data, moment, https-proxy-agent, geoip-lite, etc.). Check package.json for the full list, or install manually:
npm install axios form-data moment https-proxy-agent geoip-lite express cors mysql2


Configuration:
Update models/db.js with the new server’s MySQL credentials if different.
Adjust IMAGE_FOLDER and USED_IMAGE_FOLDER paths in uploadReceipt.js to match the new server’s file system (e.g., /home/user/receipt-jar/image/ on Linux).
Run: Start the server with node server.js.










