Create Your First App
Step 1: Generate Project
Run the Capx Compose scaffolding tool:- Vercel AI SDK integration
- OpenAI GPT streaming chat
- TypeScript configuration
- Tailwind CSS styling
- Working example pages
Step 2: Navigate to Project
Step 3: Configure Environment
Create your environment file:.env.local
and add your OpenAI API key:
Step 4: Install Dependencies
If dependencies werenβt auto-installed:Step 5: Start Development Server
What You Get
Your generated project includes:Working AI Chat Interface
Navigate to/vercel-ai
to see a complete chat interface with:
- Streaming responses from OpenAI
- Message history
- Loading states
- Error handling
Project Structure
Pre-configured Features
- Next.js 14+ with App Router support
- TypeScript for type safety
- Tailwind CSS for styling
- Vercel AI SDK for streaming
- OpenAI Integration ready to use