Commit graph

6 commits

Author SHA1 Message Date
fullsizemalt
9dc0586d67 feat: Sprint 2 Phase 1 - Auth Core Complete
 Implemented:
- Password hashing with bcrypt (salt rounds = 10)
- JWT token generation (access 15m, refresh 7d)
- Updated login endpoint to return access + refresh tokens
- Added refresh and logout endpoints
- Updated seed script with hashed passwords
- Added test users for all roles (OWNER, MANAGER, GROWER, STAFF)

📝 Files Added/Modified:
- backend/src/utils/password.ts (NEW)
- backend/src/utils/jwt.ts (NEW)
- backend/src/controllers/auth.controller.ts (UPDATED)
- backend/src/routes/auth.routes.ts (UPDATED)
- backend/prisma/seed.js (UPDATED - now hashes passwords)
- CREDENTIALS.md (UPDATED - all test users documented)

🔐 Test Users:
- admin@runfoo.run (OWNER)
- manager@runfoo.run (MANAGER)
- grower@runfoo.run (GROWER)
- staff@runfoo.run (STAFF)
All passwords: password123

⏭️ Next: Auth middleware + RBAC
2025-12-09 13:52:54 -08:00
fullsizemalt
a9ffd1d5ca fix: Correct email domain from .com to .run
- Updated seed script: admin@runfoo.comadmin@runfoo.run
- Updated all documentation to reflect correct email
- Need to re-seed database on deployment
2025-12-09 13:46:25 -08:00
fullsizemalt
7901325974 docs: Complete Sprint 1 - Backend health check fixed
 Sprint 1 Complete:
- Changed health check from curl to wget (alpine compatible)
- Changed localhost to 127.0.0.1 (fixes DNS issues with Tailscale/Docker)
- Backend now shows (healthy) status
- Added CREDENTIALS.md with login info
- Documented solution in SPRINT-1-HEALTHCHECK.md

Login credentials:
- Email: admin@runfoo.com
- Password: password123
- URL: https://777wolfpack.runfoo.run
2025-12-09 13:45:01 -08:00
fullsizemalt
d2c3e67e40 fix: Change health check from curl to wget for alpine compatibility
- Backend container uses node:20-alpine which doesn't include curl
- wget is available by default in alpine
- Health check endpoint is working, just the command was wrong
- Also added Sprint 1 documentation and credentials file
2025-12-09 13:39:43 -08:00
fullsizemalt
28d8e9e4a2 docs: Add agent-optimized debugging workflows for DNS/Routing
Some checks failed
Deploy to Production / deploy (push) Failing after 0s
Test / backend-test (push) Failing after 0s
Test / frontend-test (push) Failing after 0s
2025-12-09 08:54:51 -08:00
fullsizemalt
da7729d6e4 Initial commit: Spec Kit foundation complete
Some checks failed
Deploy to Production / deploy (push) Failing after 0s
Test / backend-test (push) Failing after 0s
Test / frontend-test (push) Failing after 0s
- Constitution and project spec (spec.yml)
- 7 comprehensive feature specs (tasks, batches, labor, compliance, inventory, integrations, comms)
- Phase 1 implementation plan (6-week roadmap)
- Week 1 task breakdown (15 concrete tasks)
- Architecture and compliance documentation
- Backend and frontend setup guides
- Deployment guide for nexus-vector
- CI/CD workflows (Forgejo Actions)
- Quick start guide for developers

Project is ready for implementation with:
- Automated testing on every push
- Automatic deployment to nexus-vector on push to main
- Database migrations handled automatically
- Health checks and monitoring

Stack: TypeScript, Fastify, React, Vite, PostgreSQL, Prisma, Docker
2025-12-08 23:54:12 -08:00