Imported from amsultan2010/autotrade (
apps/web/AGENTS.md). Install upstream withnpx skills add amsultan2010/autotrade --skill web. Copyright stays with the author.
Autotrade web app
This project uses Supabase (Postgres) as its primary database and Clerk for auth.
- Server data access:
apps/web/lib/db/(service role viaapps/web/lib/supabase-server.ts) - Client reads: REST via
apps/web/src/hooks/useApiQuery.tsand Supabase Realtime where needed - Bot scheduler: deploy
apps/workerfor always-on scans; Vercel cron hits/api/internal/bot/scan-allonce daily as a backup (apps/web/vercel.json) - Email digest cron:
/api/email/weekly-digest(Monday 8:00 UTC) - Migrations:
supabase/migrations/(apply001–005in production) - Env validation:
bash scripts/validate-env.sh apps/web/.env.local