Full Stack Vibe Coding Template
August 29, 2025 ยท View on GitHub
A modern, modular full-stack application starter template with NextJS frontend and Python FastAPI backend, supabase backend for Vibe coding.
Contains all the common boilerplate features. Just add the README.md and CONTEXT.md files to AI coding agent's context.
Dont waste your time and tokens on boilerplate code. Use it to build your app
๐ค AI-Powered Development
This template includes comprehensive Cursor Rules and Agent Instructions to supercharge your AI-assisted development:
Cursor Rules (.cursor/rules/)
- Context-aware guidance that automatically applies based on the files you're editing
- Template system with production-ready code patterns (
@api-endpoint-template,@react-component-template) - Best practices enforcement for FastAPI, Next.js, Supabase, and LLM integration
- Automatic rule application - no manual setup required
AGENTS.md
- Simplified instructions for AI coding assistants
- Project patterns and common code examples
- Architecture overview and development standards
- Quick reference for established patterns
Benefits
- โก Faster Development - Templates and patterns accelerate coding
- ๐ฏ Consistency - All code follows established patterns
- ๐ก๏ธ Quality - Built-in best practices and error handling
- ๐ Learning - New developers quickly understand project structure
- ๐ค AI-Optimized - Designed specifically for AI coding assistants
Features
Backend (Python FastAPI)
- FastAPI REST API - Fast, type-checked API development
- Supabase Integration
- Authentication (Google, LinkedIn, Email/Password)
- Database connectivity
- Realtime subscriptions
- Storage management
- Database migrations
- LLM Integration
- OpenAI and Claude support
- Abstracted LLM service
- Vector embeddings service
- Vector Database
- Qdrant integration
- Document storage and semantic search
- Automatic fallback to local in-memory database
Frontend (Next.js)
- Next.js - React framework with routing, SSR, and more
- Tailwind CSS - Utility-first CSS framework
- Responsive design - Mobile-first approach
- Supabase client - For auth and data access
- Complete auth flows - Login, signup, password reset
Getting Started
Prerequisites
- Docker and Docker Compose
- Make
- Node.js 18+ (for local frontend development)
- Python 3.10+ (for local backend development)
- Supabase CLI (for database migrations, install with
brew install supabase/tap/supabaseor see Supabase CLI docs)
Quick Start
-
Clone this repository:
git clone https://github.com/humanstack/vibe-coding-boilerplate cd vibe-coding-boilerplate -
Run the first-time setup script to configure your environment:
./first-time.shThis will:
- Check for required tools
- Guide you through setting up API keys
- Generate the necessary .env files
-
Start the development environment:
make dev -
Access the applications:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Documentation: http://localhost:8000/docs
Setup Without Script
If you prefer to set up manually:
-
Copy the
.env.examplefile to.env:cp .env.example .env -
Create a frontend environment file:
cp .env.example frontend/.env.local -
Edit both files to add your API keys for:
- Supabase (required for auth)
- OpenAI and/or Anthropic (for LLM features)
- Qdrant (for vector database features, optional)
-
Start the development environment:
make dev
Authentication Setup
For detailed instructions on setting up authentication providers (Google, LinkedIn, GitHub, etc.), see the Authentication Setup Guide.
Structure
/
โโโ .cursor/ # Cursor AI configuration
โ โโโ rules/ # Cursor rules for AI assistance
โ โโโ backend/ # Backend-specific rules
โ โโโ frontend/ # Frontend-specific rules
โ โโโ templates/ # Code templates
โโโ AGENTS.md # AI agent instructions
โ
โโโ backend/ # Python FastAPI application
โ โโโ app/ # Application code
โ โ โโโ api/ # API endpoints
โ โ โโโ core/ # Core functionality
โ โ โโโ models/ # Data models
โ โ โโโ services/ # Service layer
โ โ โโโ llm/ # LLM services
โ โ โโโ supabase/ # Supabase services
โ โ โโโ vectordb/ # Vector DB services
โ
โโโ frontend/ # Next.js application
โ โโโ app/ # Next.js app directory
โ โโโ components/ # UI components
โ โโโ services/ # API services
โ
โโโ supabase/ # Supabase configuration
โ โโโ migrations/ # Database migrations
โ โโโ seed.sql # Database seed data
โ โโโ README.md # Migrations documentation
โ
โโโ llm-context/ # Legacy context files (now replaced by Cursor rules)
โโโ docker-compose.yml # Docker configuration
โโโ Makefile # Project commands
โโโ first-time.sh # Setup script
โโโ .gitignore # Git ignore patterns
โโโ .env.example # Example environment variables
โโโ CHANGELOG.md # Project changelog
โโโ FutureImprovements.md # Future feature roadmap
Common Tasks
Development
- Start all services:
make dev - Frontend only:
make dev-frontend - Backend only:
make dev-backend
Production
- Start production services:
make prod - Frontend only:
make prod-frontend - Backend only:
make prod-backend
Cleanup
- Clean up containers:
make clean
Database Migrations
- Create a migration:
make db-migration-new name=create_table - Apply migrations to remote:
make db-apply - List applied migrations:
make db-list - Check pending migrations:
make db-status - Push migrations (same as apply):
make db-push
See supabase/README.md for more details on database migrations.
AI Development Support
Using Cursor Rules
The project includes comprehensive Cursor rules that automatically provide context-aware guidance:
- Automatic Application: Rules apply automatically based on the files you're editing
- Template Usage: Reference templates with
@api-endpoint-template,@react-component-template,@service-class-template - Best Practices: Built-in patterns for FastAPI, Next.js, Supabase, and LLM integration
Using AGENTS.md
For simpler AI assistance, use the consolidated AGENTS.md file that provides:
- Project overview and architecture
- Common patterns and examples
- Development standards and workflows
Documentation
- Cursor Rules Guide
- AI Agent Instructions
- Authentication Setup Guide
- Database Migrations
- Project Changelog
- Future Improvements
Legacy Documentation (replaced by Cursor rules)
License
MIT