# TradeCPO Link Intelligence V1.0 Installation

## 1. Upload files
Upload the project to your hosting account. Point the web root to `/public`.

## 2. Create database
Create a MySQL or MariaDB database, then import:

`database/schema.sql`

## 3. Configure application
Copy:

`config/config.example.php` to `config/config.php`

Update database credentials, base URL, CSRF key, and API key.

## 4. Login
Default admin account:

Email: `admin@tradecpo.com`  
Password: `ChangeMeNow!2026`

Change the password immediately after installation by replacing the password hash in the users table.

## 5. Redirect routing
Apache uses `/public/.htaccess`. For Nginx, route all missing paths to `/public/index.php`.

## 6. Security notes
- Use HTTPS only.
- Keep `/config`, `/app`, `/database`, `/logs`, and `/storage` outside public access.
- Replace the API key before production.
- Use strong database credentials.
- Enable server logs and firewall rules.

## 7. API
Use the `X-API-Key` header.

- `GET /api/links.php`
- `POST /api/links.php`
- `GET /api/stats.php`

## 8. V1.0 scope
This build includes login, dashboard, link management, campaign management, redirect engine, click intelligence, basic device/browser parsing, API endpoints, schema, audit logs, and installation documentation.

Future roadmap: QR image generation, geo-IP enrichment, RBAC permission matrix, AI campaign recommendations, Visitor Intelligence Terminal deep integration, and Founder Office master dashboard API.
