Minimal, working API with PostgreSQL.
npm installcp .env.example .env
# Edit .env with your DATABASE_URLnpm run devcurl http://localhost:3000/healthcurl -X POST http://localhost:3000/api/auth/signup \
-H "Content-Type: application/json" \
-d '{"email":"user@example.com"}'Response:
{
"success": true,
"token": "eyJ1c2VySWQiOi...",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"email": "user@example.com"
}curl http://localhost:3000/api/agents/{userId}curl -X POST http://localhost:3000/api/agents/{userId} \
-H "Content-Type: application/json" \
-d '{"name":"Support Bot","model":"claude-3-sonnet"}'curl -X DELETE http://localhost:3000/api/agents/{userId}/{agentId}- PostgreSQL (Neon)
- Auto-creates tables on startup
- Users table + Agents table
- Push to GitHub
- Create Vercel project
- Set DATABASE_URL env var
- Deploy
That's it!