-
Health Check Endpoint
curl http://localhost:3001/health
Expected:
{"status":"ok","timestamp":"..."} -
OpenAI Text Generation
curl -X POST http://localhost:3001/api/openai/generate \ -H "Content-Type: application/json" \ -d '{"prompt":"Hello world"}'
Expected: JSON response with generated text
-
Summarization
curl -X POST http://localhost:3001/api/openai/summarize \ -H "Content-Type: application/json" \ -d '{"text":"Long text here..."}'
-
Embedding Creation
curl -X POST http://localhost:3001/api/openai/embedding \ -H "Content-Type: application/json" \ -d '{"text":"Sample text"}'
-
Error Handling
- Missing prompt: Returns 400 error
- Invalid API key: Returns appropriate error
- Rate limit exceeded: Returns 429 error
-
Dashboard Page
- Loads without errors
- Displays statistics correctly
- Shows recent activity (if available)
-
Prompt Interface
- Text input works
- Model selection works
- Temperature slider works
- Token input accepts values
- Generate button triggers request
- Response displays correctly
- Error messages appear when needed
-
Data Visualization
- Embedding input works
- Create button triggers request
- Embedding vector displays
- Table shows first 10 values
-
Frontend → Backend Communication
- API calls succeed
- Errors are handled gracefully
- Loading states work
-
Database Integration (if configured)
- PostgreSQL connection works
- MongoDB connection works
- Data is saved correctly
- History retrieval works
-
Backend Build
cd backend && npm run build
Should complete without errors
-
Frontend Build
cd frontend && npm run build
Should create optimized production build
-
Docker Compose
docker-compose up -d
All services start successfully
-
Service Health
- PostgreSQL accessible on port 5432
- MongoDB accessible on port 27017
- Backend accessible on port 3001
- Frontend accessible on port 3000
-
CodeQL Scan - ✅ 0 vulnerabilities found
-
Dependency Audit
cd backend && npm audit cd frontend && npm audit
-
Environment Variables
- No secrets in code
.envfiles in.gitignore- Example files only contain placeholders
- Clone repository
- Follow QUICK_REFERENCE.md
- Start backend and frontend
- Access application
- Generate first prompt
- Configure OpenAI API key
- Test text generation
- Test summarization
- Test embeddings
- Verify results
- Start PostgreSQL
- Run schema script
- Start MongoDB
- Configure connection strings
- Test data persistence
- Build backend
- Build frontend
- Test production builds
- Verify optimizations
-
Backend Response Time
- Health check: < 100ms
- OpenAI calls: Based on model (typically 1-5s)
-
Frontend Load Time
- Initial load: < 3s
- Tab switching: < 500ms
-
Rate Limiting
- 100 requests/15min per IP works
- Exceeding limit returns 429
- OpenAI text generation
- Text summarization
- Embedding creation
- Custom prompts with tuning
- Batch embeddings
- History retrieval
- Dashboard with statistics
- Prompt interface with controls
- Data visualization
- Tab navigation
- Responsive design
- Express server
- OpenAI integration
- PostgreSQL service
- MongoDB service
- Error handling
- Rate limiting
- CORS support
- Material-UI v7 Grid syntax updated
- React warnings about dependencies (expected)
- Databases are optional (will log warnings if not configured)
- Create-react-app shows known vulnerabilities (not critical for development)
Last Updated: 2024-01-04
- Backend Build: ✅ Pass
- Frontend Build: ✅ Pass
- CodeQL Security Scan: ✅ Pass (0 vulnerabilities)
- Code Review: ✅ Addressed all feedback
- Type Checking: ✅ Pass
- Error Handling: ✅ Improved
- All tests assume OpenAI API key is configured
- Database tests require PostgreSQL and MongoDB running
- Docker tests require Docker and Docker Compose installed
- Performance metrics may vary based on OpenAI API response times