Customs Duty Payment is a React + Vite application for managing customs duty billing, assessment billing, client records, audit logs, staff access, and printable operational reports.
- React 18
- TypeScript
- Vite
- Tailwind CSS
- Supabase
- GitHub Pages for publishing
- Duty payment management
- Assessment billing workflow
- Client/AIN database
- Role-based staff management
- Audit logs with latest-first ordering
- Audit log print/export support
- Daily reporting
- GitHub Pages publishing via
gh-pages
mainkeeps source code onlygh-pagesis used for published build outputbackup/pre-secret-purgeexists as a post-rewrite safety backup branch
- Install dependencies:
npm install- Create local environment values from
.env.example.
Required variables:
VITE_SUPABASE_URL=https://your-project-ref.supabase.co
VITE_SUPABASE_ANON_KEY=your_anon_public_key_here
SUPABASE_URL=https://your-project-ref.supabase.co
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key_here- Start development server:
npm run devnpm run build
npm run previewThis project publishes to GitHub Pages.
npm run deployPublished URL:
https://bdyusuf2016.github.io/cdpayment
Use the SQL/schema files in this repo to prepare Supabase:
supabase_schema.sqlsql/run_admin_sql.sqlsql/tenant_isolation_rls.sql
- Real
.envfiles are ignored and should never be committed - Secret leakage history for
.envfiles has already been purged from Git history - Rotate Supabase keys if you have ever exposed them in commits or screenshots
- Keep
SUPABASE_SERVICE_ROLE_KEYserver-side only
npm run dev
npm run build
npm run preview
npm run deploy
npm run sql:init- Removed tracked local env files from Git
- Cleaned
.gitignore - Patched vulnerable build dependencies
- Cleared
npm auditfindings - Kept
mainsource-only andgh-pagespublish-only