aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/dev/roadmap.md
AgeCommit message (Collapse)Author
2025-12-04feat(auth): add auth middleware for JWT validationnsfisis
Add middleware that validates JWT tokens from Authorization header and sets authenticated user in request context. Includes helper function getAuthUser() to retrieve user from context with proper error handling. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04feat(auth): add refresh token endpointnsfisis
Implement refresh token functionality for authentication: - Add refresh_tokens table to database schema with user reference - Generate migration for the new table - Login endpoint now returns both access token and refresh token - Add POST /api/auth/refresh endpoint with token rotation - Refresh tokens are hashed (SHA256) before storage for security - Tokens expire after 7 days, access tokens after 15 minutes - Update tests to cover new functionality 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04chore(dev): update roadmap.mdnsfisis
2025-12-04feat(auth): add login endpoint with JWTnsfisis
Implement POST /api/auth/login endpoint that validates credentials and returns a JWT access token on successful authentication. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04feat(auth): add user registration endpointnsfisis
Implement POST /api/auth/register endpoint with: - Argon2 password hashing - Zod validation for username (1-255 chars) and password (8-255 chars) - Duplicate username check (returns 409 Conflict) - Returns created user with id, username, and createdAt 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04feat(shared): add Zod validation schemasnsfisis
Add Zod validation schemas for all data models (User, Deck, Card, ReviewLog) along with input schemas for API endpoints (create, update, login, submit review). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04feat(shared): define types (User, Deck, Card, ReviewLog)nsfisis
Add TypeScript type definitions for core data models used across client and server. Types are consistent with Drizzle schema defined in server. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04feat(db): add database migrationsnsfisis
Generate initial migration file for all schema tables (users, decks, cards, review_logs) using Drizzle Kit. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04feat(db): add Drizzle ORM setupnsfisis
Add Drizzle ORM with PostgreSQL for database access. Includes: - Schema definitions for users, decks, cards, and review_logs tables - Database connection with node-postgres driver - Drizzle Kit configuration for migrations - npm scripts for db:generate, db:migrate, db:push, db:studio 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04feat(db): add Docker Compose for PostgreSQLnsfisis
Add docker-compose.yml with PostgreSQL 17 Alpine image for local development. Includes healthcheck, volume persistence, and environment variable configuration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04feat(server): add logger middlewarensfisis
Use Hono's built-in logger middleware to log HTTP requests with method, path, status, and response time. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04feat(server): add error handling middlewarensfisis
Add global error handling middleware for Hono with: - AppError class for application-specific errors with status codes - Errors factory for common HTTP errors (badRequest, unauthorized, etc.) - Consistent JSON error response format - Tests covering all error types 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04test(server): add Hono app integration testsnsfisis
Add tests for the root endpoint and /api/health endpoint to verify the Hono server is working correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04feat(server): setup Vitest testing frameworknsfisis
Add Vitest as the test runner for the server package with configuration for global test APIs. Update root package.json to run tests across all packages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04feat(server): initialize Hono appnsfisis
Setup basic Hono server with health check endpoint. Adds dev, build, and start scripts using Node.js native TypeScript execution. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04feat(dev): configure Biome linternsfisis
Add Biome for linting and formatting with recommended rules. Reformat existing JSON files to use tabs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04chore(dev): update roadmapnsfisis
2025-11-30setup pnpm and tscnsfisis
2025-11-30prepare docsnsfisis