Commit Graph

6 Commits

Author SHA1 Message Date
Danny 0aaa393a6d refactor: replace SSE streaming with simple JSON chat endpoint
Replace Server-Sent Events streaming implementation with straightforward
JSON request/response pattern to simplify debugging and reduce complexity.

Changes:
- server.js: Convert /api/chat/stream to /api/chat with JSON response
- src/lib/api.ts: Remove SSE parsing logic, add ChatResponse interface
- src/hooks/useChat.ts: Handle JSON response instead of stream chunks

This change makes the request flow easier to debug and troubleshoot
while maintaining the same conversation functionality.
2026-01-20 13:49:44 -06:00
Danny a4f9df6906 fix: enforce proxy routing by removing VITE_API_URL fallback
Remove the environment variable fallback for API_BASE_URL to ensure
all API requests are routed through the proxy server. This provides
consistent authentication and security handling in all environments.
2026-01-20 12:18:53 -06:00
Danny 5195901f01 feat: add Node.js Express server for IAP and backend auth
Replace Python http.server with Express to handle:
- Large IAP JWT headers that caused 500 errors
- API request proxying with GCP identity tokens
- Static React build serving with SPA fallback

Update api.ts to use relative URLs in production for proxy routing.
2026-01-16 14:33:26 -06:00
Danny 10eae505ef feature: local and production level connection 2026-01-16 12:52:21 -06:00
Danny 3cfdde809a fix: Docker compatibility 2026-01-06 14:46:10 -06:00
Danny 2cbc0a7bba feat: setup React/Vite frontend with Tyndale AI chat interface
Initialize complete frontend project structure with the following components:

- React 18 + Vite development environment with TypeScript
- Tailwind CSS for styling with custom animations
- Radix UI components for accessible UI primitives
- React Router for navigation between landing and chat pages
- TanStack Query for efficient API data management

Key features implemented:
- Landing page with hero, features, and footer sections
- Real-time chat interface with message history
- Study/Trading mode toggle for different interaction types
- Custom hooks for chat state management
- API integration layer with backend service
- Responsive design with scroll areas and card layouts

Docker deployment configuration:
- Multi-stage Dockerfile with Node.js build and Nginx production
- Custom nginx configuration for SPA routing on port 3000
- Optimized production build process

Development tools:
- ESLint for code quality
- TypeScript for type safety
- PostCSS with Autoprefixer
- Environment variable configuration with .env.example
2026-01-06 14:34:25 -06:00