How henrique-jost/hack4edu works
This project is a full-stack Next.js application designed to offer an interactive tutoring platform where teachers can create intelligent tutors and students interact via audio. The system supports authentication, chat, file management, and analytics, all backed by PostgreSQL (via drizzle-orm) and integrated with several external services like hume.ai and @vercel offerings.
• Frontend (UI):
• Next.js pages (e.g., /app/(auth) and /app/(chat)) as the user interface for login, chat interaction, and dashboard views.
• React components (in the components directory) displaying chat, forms, history, etc.
• Tailwind CSS for styling.
• Backend/API:
• API routes under /app/(auth)/api and /app/(chat)/api handling authentication (using next-auth) and chat functions.
• Middleware components (see middleware.ts and AI logic in /ai directory) processing specific features such as RAG and AI interactions.
• Database:
• PostgreSQL management via drizzle-orm (drizzle.config.ts, schema.ts) for storing user data, chat logs, and analytics.
• Future integration with a vector database for enhanced student-interaction data.
• AI and External Services:
• The ai directory contains core logic to interface with language models and audio-based interaction systems.
• External dependencies include @ai-sdk/openai and hume-ai for audio and sentiment analysis.