# cPanel Deployment Guide

This project is prepared for cPanel Node.js App.

## Steps
1. Upload and extract this zip into your domain folder, for example `ai.fit.num.edu.kh`.
2. Open cPanel -> Setup Node.js App.
3. Create app:
   - Node.js version: 18 or 20
   - Application mode: Production
   - Application root: extracted project folder
   - Startup file: `server.js`
4. Click **Run NPM Install**.
5. Build React: run `npm run build` in Terminal, or use cPanel Run JS Script if available.
6. Restart the Node.js app.

## Important
- Startup file is `server.js`.
- React build output must exist in `dist/`.
- Product images are stored in `uploads/products`.
- Product data is stored in `data/products.json`.
- Transactions are stored in `data/transactions.json`.

If your page is blank, run `npm run build` again and restart the app.
