This is a Next.js project bootstrapped with create-next-app.
-
Install dependencies (Node 18+):
npm install
-
Start the dev server:
npm run dev
(Or use
yarn dev,pnpm dev, orbun dev.) -
Open the app: http://localhost:3000
The app and API run on the same origin, so all
/api/*routes are served by this server. To point the frontend at a different backend (e.g. production), set:NEXT_PUBLIC_API_URL=https://call-pal.vercel.app npm run dev
- Open http://localhost:3000. You see: “How would you like CallPal to feel?” with two cards.
- Tap “Calm & Guided” (left card). You go to Calm onboarding (first time only).
- Enter a favourite thing (e.g. “Barbie”, “cats”, “space”) and tap “Make CallPal mine 💜”. Theme is applied and you’re taken to Calm Home.
- On Calm Home, tap a door tile (e.g. 🩺 Doctor). You go to Calm Input.
- Type what you need (e.g. “My back has been hurting”) and tap the theme button (e.g. “Let’s do this! 💗”). You go to Calm Confirm.
- On Calm Confirm, tap the primary button to start the call. You go to Calm Calling (waiting screen with transcript polling).
- When transcript appears, you’re taken to Calm Done. From there use “Back to home” or “Share summary”, or use the bottom nav (Home / History / Settings).
- Open http://localhost:3000. Tap “Quick & Simple” (right card). You go to Power Home.
- Optionally tap a pill (Doctor, Bank, etc.) to set context. Type in the input (e.g. “Book an appointment”) and tap “Go →”. You go straight to Power Calling (no confirm step).
- On Power Calling, watch status (Calling… → Connected → Done) and the live transcript. Tap “New call” to return to Power Home.
- Calm: Bottom nav → Settings.
- Power: Bottom nav → Settings.
On Settings you can: edit Name; switch Mode (Calm 🌿 / Power ⚡); in Calm, change theme (favourite thing) and see Caregiver; view About.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.