Set up Fastify + TypeScript + Drizzle ORM backend with: - Database schema (7 tables: users, categories, questions, knowledge_cards, user_progress, skill_tree, user_chapter_progress) - JWT auth middleware + admin token auth - Route structure for auth, quiz, progress, gamification, payment, and admin - Service stubs for Phase 1b implementation - Zod-validated env config, custom error classes
6 lines
148 B
TypeScript
6 lines
148 B
TypeScript
// XP service stub — to be implemented in Phase 1b
|
|
|
|
export async function calculateXp(_baseXp: number, _comboCount: number) {
|
|
return _baseXp;
|
|
}
|