Skip to content

About

Lean SaaS starter on @codewavebr/wavecore + @codewavebr/wavekit

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Wave Template

Lean SaaS starter for Code Wave products. Built on:

No database, auth provider, or payment gateway is wired by default. Stubs keep the app runnable; production steps live under docs/.

Quick start

bun install
bun run dev

Packages are public on npm — no token or .npmrc needed.

Optional: if you have local package checkouts next to this repo, postinstall / bun run link:packages can override node_modules with local builds.

Open http://localhost:3000 — you will be redirected to /login. Pick a demo user.

Deploy (Vercel)

Recommended host: Vercel (full Next.js App Router, no static export).

  1. Import the GitHub repo at vercel.com/new.
  2. Framework preset: Next.js. Install/build: bun install / bun run build (already in vercel.json).
  3. Env (optional for the demo):
NEXT_PUBLIC_ROOT_DOMAIN=your-app.vercel.app
NEXT_PUBLIC_THEME_COLOR=10 96% 65%
  1. Deploy. Every push to main updates production.

CLI alternative:

bunx vercel
bunx vercel --prod

Demo session uses localStorage (lib/session.ts). For production auth, swap to cookies/lib/actions.ts or NextAuth/Clerk — Vercel supports server features that GitHub Pages did not.

Stack

Layer Choice
Runtime Next.js 15 App Router, React 19, Bun
UI WaveKit + HeroUI v3 + Tailwind CSS v4
Platform WaveCore tenant/billing contracts
Persistence In-memory stubs (lib/*)
Hosting Vercel

Project map

app/
  login/          mock sign-in
  app/            dashboard shell routes
components/       providers, brand, AppShell
lib/
  demo.ts         users/tenants/plans stubs (client-safe)
  session.ts      localStorage session (demo)
  auth.ts         cookie session helpers (Node/Vercel)
  tenant.ts       wavecore/next adapter (Node/Vercel)
  billing.ts      re-exports plan helpers
  actions.ts      server-action sign-in (Node/Vercel)
docs/
  DATABASE.md     wire Postgres + Drizzle
  MULTI_TENANT.md domain routing + adapter
  BILLING.md      plans, webhooks, gates

Scripts

bun run dev
bun run typecheck
bun run build
bun run start

Next steps

About

Lean SaaS starter on @codewavebr/wavecore + @codewavebr/wavekit

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages