Landing page for the Oku mental health app. Built with Next.js, Tailwind CSS, and the Serenity colour system.
npm install
cp .env.example .env.local
# Pull DATABASE_URL from Vercel after adding the Neon integration:
# vercel env pull .env.local
npm run devOpen http://localhost:3000.
/— Marketing landing page/wellbeing— NHS Every Mind Matters Mind Plan quiz embedded via iframe (if NHS blocks framing in your browser, open the quiz directly on nhs.uk)
The app is a standard Next.js app deployed on Vercel. The project is already linked (see .vercel/), so pushing to main triggers a production deployment automatically via Vercel's Git integration; other branches get preview deployments.
Signups are stored in Neon Postgres via a Next.js API route (POST /api/waitlist).
- In the Vercel dashboard, open your project → Storage → Create Database → Neon (or run
vercel integration add neon). - Run the SQL in
schema.sqlin the Neon SQL editor to create thewaitlisttable. DATABASE_URLis injected automatically — no manual env var needed.- Push to
main(or runvercel --prod).
To view signups: Vercel dashboard → Storage → your Neon database → Data tab, or query SELECT * FROM waitlist ORDER BY created_at DESC in the SQL editor.
To deploy manually from your machine, install the CLI (npm i -g vercel) and run vercel (preview) or vercel --prod (production).
Custom domains are configured in the Vercel dashboard (Settings → Domains) — TLS certificates are provisioned automatically.
The site uses the Serenity colour palette (shared with the mobile app). Light and dark modes are toggled via the navbar switch, powered by next-themes.
- Next.js (App Router, deployed on Vercel)
- Tailwind CSS v4 with custom theme tokens
- next-themes for light/dark/system toggle
- Waitlist:
POST /api/waitlist→ Neon Postgres (waitlisttable)