bondtech

BONDTECH — Technology & Business Consulting

BONDTECH is a technology engineering and business consulting firm. Its website presents software development, business and financial consulting, digital transformation, product design, and a local client/admin platform. The experience uses an editorial-brutalist visual system with restrained motion. See PLAN.md for current scope and remaining work.

The public site (landing, services, projects, and case studies) uses:

All motion respects prefers-reduced-motion and gates WebGL off on touch / no-WebGL devices. Enquiries and platform records use a local SQLite database. The portal uses password-hashed accounts, HTTP-only sessions, and role-based access. The project archive contains eight restored portfolio entries, responsive category filters, project detail pages, and the available live links. Project artwork is clearly used as illustration; unverified outcome metrics are not displayed.

Getting started

Use Node.js 22.13 or newer. Install dependencies:

npm install

Run the dev server locally on port 3001:

npm run dev -- --port=3001

Then open http://localhost:3001. The SQLite database is created at .data/bontech.sqlite and is excluded from version control.

Create the first administrator

Set credentials in the current shell, then create the local super-administrator:

$env:BONDTECH_ADMIN_EMAIL = "admin@example.com"
$env:BONDTECH_ADMIN_PASSWORD = Read-Host "Choose a password (12+ characters)"
npm run admin:create
Remove-Item Env:BONDTECH_ADMIN_EMAIL, Env:BONDTECH_ADMIN_PASSWORD

The script stores a scrypt password hash, not the password. Do not commit credentials or the local database. Administrators can create 72-hour, single-use client invitations from /clients; when email delivery is configured, invitations are sent automatically. Otherwise, share the link securely. Clients set their own password. Password reset is not implemented yet.

Email delivery

Set email credentials in the ignored .env.local file for local development, or in your hosting provider’s environment settings for deployment. Generic SMTP uses SMTP_HOST, SMTP_PORT, SMTP_SECURE, SMTP_USER, and SMTP_PASSWORD; Gmail App Password and Resend configurations are also supported. Set BONDTECH_FROM_EMAIL and, for enquiry notifications, BONDTECH_ADMIN_EMAIL. Administrators can open their default mail app from each enquiry in /briefs, with the lead’s address, subject, and a starter message prefilled. Restart the server after changing environment variables. Never commit real credentials.

Testing

Run the Playwright end-to-end suite (covers public services/contact, protected platform access, enquiry review, and visual interactions):

npm run test:e2e

Or with the interactive UI runner:

npm run test:e2e:ui

Use the local runtime only for now. Production deployment, a managed database, transactional email, file storage, payments, quotations, and invoices still need to be configured and implemented; the current SQLite database is not a production multi-instance store.

Other scripts

npm run build   # production build
npm run start   # run the production build
npm run lint    # eslint
npm run admin:create # create the first local administrator from environment variables

Project structure

Project artwork

The portfolio uses bundled SVG artwork from public/projects/, so the project grid works offline and does not depend on third-party image APIs. These are portfolio illustrations, not captured product screenshots. The case-study pages avoid unsupported outcome metrics.

Adding a Spline 3D scene

The hero uses a WebGL halftone shader by default, but you can drop in a Spline scene instead — the integration is already wired (src/components/three/SplineEmbed.tsx, gated by SceneGate).

  1. In spline.design, open your scene (or remix a community one).
  2. Top-right Export → Code / React, choose Public URL, and copy the URL — it ends in .splinecode (e.g. https://prod.spline.design/XXXXXXXX/scene.splinecode).
  3. In .env.local, set NEXT_PUBLIC_SPLINE_SCENE= to that URL and restart npm run dev.

The hero swaps the halftone for your scene automatically. Leave the var blank to keep the halftone. Tip: scenes with a transparent background sit best behind the headline; keep them visually calm so the type stays the focal point.