🛠️ Application Deployment Guide

This guide explains how to deploy the application, including backend, frontend, NGINX configuration, and systemd service setup.


1️⃣ Backend Setup

  1. Place your backend folder in the correct destination, e.g.:
/home/YOUR_USER/

  1. Inside the backend folder, there is a DbConnection.txt file where you need to provide your SQL credentials:
{
    "USER": "your_username",
    "SERVER": "your_server_ip,port",
    "PASSWORD": "your_secure_password",
    "DATABASE": "your_database",
    "DIVISION": "YOUR_DIVISION",
    "TERMINAL": "YOUR_TERMINAL",
    "ORDERSYNCAPIURL": "<https://your-api-url.com>"
}

Replace all placeholders with your actual values.


2️⃣ Frontend Setup

  1. Place your frontend folder in:
/var/www/html/frontend/

  1. Inside the frontend folder, update appConfig.json with the correct API URL:
{
    "apiUrl": "<http://your-server-ip>:your-port/your-app/api",
    "Version": "1.0.0.1"
}

  1. Additionally, update the appConfig.json inside the assets folder:
{
    "apiUrl": "<http://your-server-ip>:your-port/your-app/api",
    "Version": "1.0.0.1"
}

Make sure the IP, port, and app path match your deployment.


3️⃣ NGINX Configuration