# Packaging website + factory app — handover package

This is a complete B2B packaging website and factory-management application, ready for you to rebrand, edit, and launch as your own. It was originally built as "AI Packaging" — every name, price, logo, colour, and piece of text can be changed.

## What's inside

A single Next.js 14 application that contains both halves:

- **Public website** — home, product catalog, food-packaging catalog, a 3D box configurator, instant price quote, customization, checkout, and order tracking.
- **Factory back-office** (behind login) — orders, customers, inventory, production workflow, costing, quotes, reports, invoicing (PDF), and Excel import/export.

Tech: Next.js 14 (React + TypeScript), Tailwind CSS for styling, PostgreSQL for data, PM2 to keep it running. No paid services required.

## Read these in order

1. **SETUP-GUIDE.md** — install it on a computer or server and get it running.
2. **CREDENTIALS.md** — the login accounts and passwords (change these before launch).
3. **CUSTOMIZE.md** — change the company name, logo, colours, prices, and text.

## 5-minute quick start

```bash
# 1. Install Node.js 18+ and PostgreSQL first (see SETUP-GUIDE.md)
npm install
cp .env.example .env.local     # then edit .env.local
createdb packaging             # create the database
psql packaging < db/schema.sql # load the tables
npm run build
npm start                      # opens on http://localhost:3100
```

Then open http://localhost:3100, and log in at `/login` with the admin account in CREDENTIALS.md.

## What is NOT included (on purpose)

The original site's live passwords, database password, and server keys were removed for security. This package ships with fresh default logins (in CREDENTIALS.md) that you set up as your own. Nothing here connects back to the original site.
