{"slug": "how-i-built-pathway-ai-a-full-stack-saas-platform-in-1-month", "title": "How I Built Pathway AI: A Full-Stack SaaS Platform in 1 Month", "summary": "A developer built Pathway AI, a full-stack SaaS platform for international students, in one month using Next.js, Supabase, and TypeScript. The platform features student profiles, visa checklists, SOP generation, resume building, and destination comparison, with rule-based guidance and optional AI enrichment via Gemini API in development mode.", "body_md": "I built **Pathway AI**, a SaaS platform for international students planning their study abroad journey, in roughly one month. Here's how I went from concept to live product using Next.js, Supabase, and TypeScript.\n\nInternational students face overwhelming challenges when planning to study abroad: fragmented information, biased agents, unclear visa requirements, and no clear way to compare destinations. I wanted to build something that solved this.\n\nUsed **Supabase Auth** with Google and GitHub OAuth. This approach prevents spam and ensures data quality:\n\n``` js\n// lib/supabase.ts\nimport { createClient } from '@supabase/supabase-js';\n\nexport const supabase = createClient(\n  process.env.NEXT_PUBLIC_SUPABASE_URL!,\n  process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY!\n);\n```\n\nBuilt around student profiles and their journey:\n\n**profiles** → stores all student data (destination, budget, course, goals)\n\n**visa_checklists** → tracks document completion\n\n**sops** → stores Statement of Purpose drafts\n\n**resumes** → resume builder data\n\n**countries / cities / courses** → reference data for exploration\n\nRow-Level Security (RLS) ensures students only see their own data.\n\nStudents fill their profile → system generates a Statement of Purpose draft using structured templates.\n\n```\n// lib/sop-generator.ts\nexport function generateSOP(profile: Profile): string {\n  return `\nDear Admissions Committee,\n\nI am applying to ${profile.course_name} at ${profile.preferred_university} \nin ${profile.target_destination} because...\n  `;\n}\n```\n\nSimilar approach — profile data → formatted resume sections → PDF export.\n\nCore system provides personalized guidance using rule-based logic tailored to student profile + target destination.\n\n**Production:** Always uses reliable rule-based engine — fast, cost-free, predictable responses.\n\n**Self-hosted / Development:** Optional Gemini API integration available. If you run this locally and add a Gemini API key, the Advisor can enrich responses with real AI personalization. This is gated behind a `NODE_ENV=development`\n\nflag — production deployments never call AI APIs.\n\nStudents track required documents for their target country. Sections stored as JSON, items marked complete as they prepare.\n\nBrowse destinations side-by-side, compare costs, safety scores, job prospects, PR pathways.\n\n**Why Supabase over Firebase?**\n\n**Why Vercel?**\n\n**Why TypeScript everywhere?**\n\n**Vercel:** Automatic deployments on git push. Environment variables stored securely.\n\n**Sentry:** Catches errors in production. Configured at build time.\n\n**Upstash Redis:** Rate limits API calls (contact form, future exports).\n\n**Challenge 1: Handling complex JSONB data**\n\nStoring skills, experiences, languages as JSON meant flexible schema but harder migrations. Solved by keeping schema versions in mind from day one.\n\n**Challenge 2: Ensuring data consistency**\n\nWith RLS policies, had to test extensively to prevent data leaks. Built a checklist: test as authenticated user, test as different user, test with no auth.\n\nCheck it out: [pathway-ai-olive.vercel.app](https://pathway-ai-olive.vercel.app/)\n\nGitHub: [github.com/krishna-builds-dev/pathway-ai](https://github.com/krishna-builds-dev/pathway-ai)\n\n**Have you built a SaaS from scratch? Drop your stack and lessons in the comments below!**\n\nI'm a full-stack developer focused on Next.js + Supabase. Open for freelance work. Follow on [GitHub](https://github.com/krishna-builds-dev) or [LinkedIn](https://www.linkedin.com/in/krishna-builds-dev/)", "url": "https://wpnews.pro/news/how-i-built-pathway-ai-a-full-stack-saas-platform-in-1-month", "canonical_source": "https://dev.to/krishna-builds-dev/how-i-built-pathway-ai-a-full-stack-saas-platform-in-1-month-3d1o", "published_at": "2026-06-24 12:29:18+00:00", "updated_at": "2026-06-24 12:39:27.685473+00:00", "lang": "en", "topics": ["developer-tools", "artificial-intelligence", "ai-products"], "entities": ["Pathway AI", "Supabase", "Next.js", "TypeScript", "Vercel", "Sentry", "Upstash Redis", "Gemini API"], "alternates": {"html": "https://wpnews.pro/news/how-i-built-pathway-ai-a-full-stack-saas-platform-in-1-month", "markdown": "https://wpnews.pro/news/how-i-built-pathway-ai-a-full-stack-saas-platform-in-1-month.md", "text": "https://wpnews.pro/news/how-i-built-pathway-ai-a-full-stack-saas-platform-in-1-month.txt", "jsonld": "https://wpnews.pro/news/how-i-built-pathway-ai-a-full-stack-saas-platform-in-1-month.jsonld"}}