Is lesson ke end tak aapka mini CRM check kiye hue Indian mobile number ke saath leads add karega, unhe list aur filter karega, notes aur status changes ki timeline rakhega, aur aaj ke aur overdue follow-ups dikhayega.
Aapko chahiye: lesson 1 wala mini-crm folder approved PRD.md ke saath, aapka coding agent · Time: 8 minute
Har screen pehle browser mein save fake leads (localStorage) ke saath banegi. Asli customer data tabhi aayega jab lesson 4 mein logins aur database rules lag jayenge.
Yeh hai woh data jo aap bana rahe ho. Ek
leadstable mein lesson 1 ke fields; do chhoti tables history rakhti hain:Har enquiry ki ek row, plus do history tables. Prompt · ise apne AI agent mein paste karoRead PRD.md first. Goal: Create the mini CRM project and its data layer. No screens yet. Context: I am a beginner; you write all the code. This folder has PRD.md. Details: - Create a Vite + React app in this folder with the official create command. Keep PRD.md. - Put ALL data reading and writing in one file, src/lib/leadsStore.ts, so we can swap localStorage for Supabase later without touching the screens. - Data: leads (id, name, phone, source, interest, budget_inr, status, next_follow_up as YYYY-MM-DD, owner_id, created_at, updated_at), notes (id, lead_id, text, created_at), status_changes (id, lead_id, from_status, to_status, changed_at). - For now save everything in localStorage under the key "mini-crm-v1". Rules: Ask me before installing any package other than what the create command installs. Do not build any screens yet. Done when: the app starts with npm run dev, and you show me the list of functions in leadsStore.ts with one line each on what it does.
Phir pehla save point banao, jaise Build screen by screen mein:
git init,git add -A,git commit -m "Project and data layer".Kyun?Browser mein fake data ka matlab hai ki koi bug kabhi kisi asli customer ka number leak nahi kar sakta. Saara data code ek file mein rakhoge toh lesson 4 ek chhota sa swap banega, har screen dobara likhna nahi padega.
Baaki lesson padhne ke liye free login karo
Har lesson free hai. Free account se saare lessons khul jaate hain aur aapki progress save hoti hai.
Is lesson mein aage:
- Add lead form, Indian mobile checks ke saath
- Leads list, search aur filters ke saath
- Lead detail: notes aur status history
- Today screen: aaj ke aur overdue
- Fake test data bharo
- Recap