# H.R. Vista — Deployment Guide

## Which package should I use?

| Your hosting | Package | Entry |
| --- | --- | --- |
| **Shared cPanel without Node.js** (most Bluehost shared plans) | `shared-host/` or `dist/hrvista-shared-host-*.tar.gz` | `/install.php` |
| cPanel **with** “Setup Node.js App” / VPS | Full repo or `dist/hrvista-nodejs-*.tar.gz` | `/installer/` |

---

## A) Shared hosting (recommended when Node is unavailable)

1. cPanel → **MySQL® Databases** → create DB + user → ALL PRIVILEGES  
2. Upload contents of `shared-host/` into `public_html`  
3. Visit `https://your-domain/install.php`  
4. Finish the wizard → open the site  
5. Delete `install.php` when done  

Details: [`shared-host/README.md`](shared-host/README.md)

**Requirements:** PHP 8+, `pdo_mysql`, Apache `mod_rewrite`.

---

## B) Node.js hosting

1. Create MySQL database/user  
2. Upload project  
3. Open `/installer/` wizard  
4. cPanel → **Setup Node.js App**  
   - Application root = project folder  
   - Startup file = `server.js` (created by installer)  
   - NPM Install → Restart  

Details: [`installer/README.md`](installer/README.md)

---

## Branding

- Product name: **H.R. Vista**  
- Tagline: **Organizational Management**

---

## Multi-company

The installer creates a **super admin** (site owner) and the first **company/tenant**.  
Additional companies are managed in the **Companies** tab (admin).  
Each company’s people, org chart, schedules, and leave are isolated.
