Commit Graph
16 Commits
Author SHA1 Message Date
Daniel Samson c1313c8758 feat: add M5 setup authentication milestone based on reference implementation
Backend (FastAPI):
- User model with username, password_hash, created_at fields
- PBKDF2 password hashing (120,000 iterations with salt)
- JWT token generation using HS256 algorithm (7-day expiry)
- Auth endpoints: POST /api/auth/register, POST /api/auth/login
- GET /api/auth/me validates Bearer tokens
- Environment variable HN_SECRET_KEY for JWT signing

Frontend (React + TypeScript):
- AuthContext for authentication state management
- Login.tsx, Register.tsx, SignOut.tsx pages
- AUTH_TOKEN stored in localStorage
- Session restoration on page load
- API client with auth methods and token attachment

Security:
- Passwords hashed with PBKDF2-SHA256 (not plaintext)
- Random salt per password using secrets.token_hex
- JWT signed with configurable SECRET_KEY
- 401 responses for invalid/expired tokens

Reference implementation used: /home/daniel/Gitea/daniel/news
2026-10-29 16:17:14 +00:00
Daniel Samson e6a72964b0 feat: add M4 setup developer environment milestone
- Add docker-compose.yml orchestrating backend and frontend services
- Create .env.example with documented environment variables
- Create .env file with default development configuration
- Makefile with dev, stop, restart, test, clean commands
- data/.gitignore excludes SQLite database from version control
- .dockerignore files for both frontend and backend builds
- Update README.md with M4 milestone links

This milestone enables developers to run the full application stack using Docker Compose.
2026-10-29 16:05:24 +00:00
Daniel Samson 85490bc0a2 feat: update M2/M3 milestones to include testing infrastructure
M2 (Backend):
- Add tests/ folder with pytest test files
- Add pytest.ini for test configuration and coverage
- Update scoring to require unit tests (Score 4+)

M3 (Frontend):
- Add tests/ folder with Vitest component unit tests
- Add playwright/e2e/ folder with E2E Playwright tests
- Add @playwright/test dependency and configuration
- Update scoring to require both unit and E2E tests (Score 5)

README.md updated with all milestone links and test requirements
2026-10-29 15:54:10 +00:00
Daniel Samson d66fe178c3 feat: add M3 setup frontend milestone with scoring rubric
- Add m3-setup-frontend-prompt.md with React + TypeScript + Vite setup instructions
- Add m3-setup-frontend-scoring.md with comprehensive acceptance criteria scoring (22 points)
- Update README.md with M3 frontend milestone links
2026-10-29 15:50:24 +00:00
Daniel Samson 8e05ae3497 feat: add M2 setup backend milestone with scoring rubric
- Add m2-setup-backend-prompt.md with structured documentation for FastAPI backend setup
- Add m2-setup-backend-scoring.md with acceptance criteria scoring table
- Update README.md with M2 milestone links
2026-10-29 15:43:10 +00:00
Daniel Samson db902a64df feat: add M1 setup git project milestone with scoring rubric
- Add m1-setup-git-project-prompt.md with structured documentation
- Add m1-setup-git-project-scoring.md with acceptance criteria scoring table
- Update README.md with milestones section
2026-10-29 15:39:51 +00:00
daniel 9f2afabfdf Update README.md 2026-10-29 15:00:35 +00:00
daniel 3888562a47 Update README.md 2026-10-29 14:58:26 +00:00
daniel ea39197be6 Update README.md 2026-10-29 14:47:04 +00:00
daniel f4f8f9659e Update README.md 2026-10-29 14:43:21 +00:00
daniel e36eb4e12c Update README.md 2026-10-29 14:43:09 +00:00
daniel 8503717d49 Update README.md 2026-10-29 14:40:27 +00:00
daniel 7b039cae2a Update README.md 2026-10-29 14:36:59 +00:00
daniel 1bb3d9209f Update README.md 2026-10-28 12:20:55 +00:00
daniel 393a3b1cec Update README.md 2026-10-28 12:20:22 +00:00
daniel 4a363d97e1 Initial commit 2026-10-28 12:13:45 +00:00