What this repo contains (delivered):
- Next.js app (plain JavaScript) with Tailwind CSS for styling (shadcn-like UI).
- Dark mode toggle.
- Supabase (email/password) auth wiring (copy-paste ready).
- CoinGecko integration (top 5 by market cap) with auto-refresh every 30s.
- 7-day sparkline charts using Chart.js.
- Electron wrapper and
electron-builderconfig to produce executables for Windows/macOS/Linux.
Important limitations (read)
- I cannot host the web app or run packaging inside this chat environment. This ZIP contains the full project and scripts. You must run the build/packaging steps locally to create platform executables.
- Supabase project creation is not done for you. Follow steps below to create a Supabase project and seed a demo user.
- Unzip the repo and
cd crypto-dashboard. - Copy
.env.example->.env.localand fill values:NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEY
- Install:
npm install
- Start dev server:
npm run dev
- Open http://localhost:3000 — you should see the dashboard. To run Electron dev (after the web server starts), use:
npm run electron:dev
npm run build:web- Make sure you have platform-specific tooling for macOS and Windows packaging if needed.
- Example (all platforms):
npm run package:allOr per-platform:
npm run package:win
npm run package:mac
npm run package:linux- Create a Supabase project at https://app.supabase.com/.
- In Project Settings -> API get the
anonkey and project URL; place them in.env.local. - Run the SQL in
seed/seed.sql(or use the SQL editor) to create a demo user (email/password).- Demo credentials in this repo:
demo@local.test/Password123!
- Demo credentials in this repo:
- The repo is styled with Tailwind and follows shadcn design patterns. To add official shadcn components, run:
and follow their docs. The UI will still work without this step.
npx shadcn-ui init npx shadcn-ui add button dialog
pages/index.js— main dashboardlib/supabaseClient.js— Supabase clientcomponents/*— UI pieces: Dark toggle, Crypto card, Chartelectron/main.js— Electron main process
- I can help step-by-step in-chat while you run the commands locally or in CI.