Degen Academy
Overview
Degen Academy is a production-ready gamified cryptocurrency education web application built around structured AI chat, cross-topic keyword mastery, and practice exams with global leaderboard rankings. Learners authenticate with a username and PIN, then work through topic-backed conversations powered by Gemini 2.5 Flash via the Lovable AI Gateway while mastery and ranks update from a relational keyword model linked to categories through many-to-many associations. The product combines those learner flows with an admin CMS for topics, keywords, questions, and knowledge points, including bulk text import and export with preview and drag-and-drop ordering. Architecturally, it ships as a Vite and React client on Lovable hosting with Lovable Cloud PostgreSQL, session auth, and Deno edge functions for streaming chat, exam flows, PIN hashing, and row-level-secured access across the schema.
Features
- Built streaming AI chat with adaptive depth handling, tool-driven follow-up generation, and per-user rate limiting enforced server-side through edge infrastructure.
- Implemented cross-topic keyword mastery using a shared keywords table and topic linkage, with batched progress reads and automatic rank recalculation across ten progression tiers.
- Designed a practice test engine with persisted attempts and aggregates maintained in the database, plus a global leaderboard driven by mastery outcomes.
- Integrated PIN-based authentication with edge-function hashing and verification, automatic profile provisioning on signup, and admin enforcement via security-definer role checks and row-level security.
- Delivered an admin CMS for categories, keywords, questions, and knowledge points, including bulk .txt import and export with diff-style preview and drag-and-drop reordering.
- Engineered structured learning sessions limited to twenty questions per dive, with conversation persistence, completion branching, and AI-generated learning summaries.