# Go-live checklist

Tick these off in order. Details for each are in SETUP-GUIDE.md, CUSTOMIZE.md, and CREDENTIALS.md.

## About the download size

This package is about 1.4 MB because it contains the **source code** — the actual website. It does **not** include:

- `node_modules` — the ~300 MB of libraries the app uses. These download automatically when you run `npm install`. You never ship them.
- The `.next` build folder — created when you run `npm run build`.

So 1.4 MB is the complete website. After `npm install` and `npm run build` on your machine, the running app is a few hundred MB — all generated from what's in this zip.

## 1. Get it running (SETUP-GUIDE.md)

- [ ] Install Node.js 18+ and PostgreSQL.
- [ ] `npm install`
- [ ] Create the database and load `db/schema.sql`.
- [ ] (Optional) Load `db/seed-example.sql` for starter materials and rates in the admin.
- [ ] Copy `.env.example` to `.env.local` and fill it in.
- [ ] `npm run build` then `npm start` — confirm it opens locally.

## 2. Make it yours (CUSTOMIZE.md)

- [ ] Replace "AI Packaging" with your company name everywhere.
- [ ] Swap the logo and favicon in `public/`.
- [ ] Update contact details (phone, email, address, GST).
- [ ] Set your brand colours in `tailwind.config.js`.
- [ ] Review the product catalog and prices in `src/data/foodPackaging.ts`.
- [ ] Add your real materials, machines, and rates in the admin (or edit the seed).

## 3. Secure it (CREDENTIALS.md)

- [ ] Change all three login passwords.
- [ ] Change the login emails to yours.
- [ ] Set a random `AUTH_SECRET`.
- [ ] Set a strong PostgreSQL password.

## 4. Put it live (SETUP-GUIDE.md, section 7)

- [ ] Point your domain's DNS to your server.
- [ ] Run it with PM2 so it restarts automatically.
- [ ] Put Nginx in front and get an HTTPS certificate with Certbot.
- [ ] Open your domain in a browser — you're live.

## 5. Before you announce

- [ ] Test placing a quote and an order end-to-end.
- [ ] Test logging into the admin and viewing the order.
- [ ] Set up a database backup (`pg_dump`, see SETUP-GUIDE.md).
