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
This template includes comprehensive Cursor Rules and Agent Instructions to supercharge your AI-assisted development:
- 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
- Simplified instructions for AI coding assistants
- Project patterns and common code examples
- Architecture overview and development standards
- Quick reference for established patterns
- β‘ 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
- 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
- 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
- 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/supabase
or see Supabase CLI docs)
-
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.sh
This 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
If you prefer to set up manually:
-
Copy the
.env.example
file 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
For detailed instructions on setting up authentication providers (Google, LinkedIn, GitHub, etc.), see the Authentication Setup Guide.
/
βββ .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
- Start all services:
make dev
- Frontend only:
make dev-frontend
- Backend only:
make dev-backend
- Start production services:
make prod
- Frontend only:
make prod-frontend
- Backend only:
make prod-backend
- Clean up containers:
make clean
- 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.
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
For simpler AI assistance, use the consolidated AGENTS.md
file that provides:
- Project overview and architecture
- Common patterns and examples
- Development standards and workflows
- Cursor Rules Guide
- AI Agent Instructions
- Authentication Setup Guide
- Database Migrations
- Project Changelog
- Future Improvements
MIT