This repository is the official website workspace for huanyukuntaichem.com.
- Project stage: initial Phoenix B2B website structure established.
- Deployment mode: Plan A, GitHub + VPS.
- Frontend: Next.js App Router, multilingual routes under
frontend/src/app/[locale]. - CMS/backend: Directus + PostgreSQL planned on the VPS with Docker Compose.
- Content rule: products, categories, news, pages, SEO text, image alt text, and inquiries belong in Directus, not hard-coded frontend data.
- Interface copy: fixed navigation, buttons, forms, empty states, and labels live in
frontend/src/locales.
Before changing code, read these files in order:
AGENTS.mddocs/project-memory/00-READ-ME-FIRST.mddocs/project-memory/01-CODE-STANDARDS.mddocs/project-memory/02-AGENT-MEMORY.mddocs/project-memory/03-COMPANY-PROFILE.md
frontend/ Next.js website
backend/ Directus/PostgreSQL deployment skeleton
deployment/ Nginx, PM2, and VPS deployment references
scripts/ Safe deployment helper scripts
docs/project-memory/ Phoenix project memory and handoff files
npm install
npm --workspace frontend run devCopy frontend/.env.example to frontend/.env.local for local Directus testing.
Do not commit real .env, tokens, SSH keys, database credentials, or server secrets.
npm --workspace frontend run lint
npm --workspace frontend run build