ca-grow-ops-manager/CREDENTIALS.md
fullsizemalt d83c794963 feat: Plant Touch Points & IPM Tracking Spec
📋 New Feature Spec from 777 Wolfpack Feedback

Requirements:
- Touch points system for every plant interaction
- Record data at each touch point (type, notes, photos)
- IPM schedule tracking (10-day root drench cycles)
- Pyganic 5.0 product tracking
- Mobile-first quick entry
- Alerts for IPM treatments

Database Design:
- PlantTouchPoint model (touch type, measurements, photos)
- IPMSchedule model (10-day intervals, auto-calc next treatment)
- TouchPointType enum (WATERING, FEEDING, IPM_TREATMENT, etc.)

UI Design:
- Quick action buttons for common touch points
- IPM schedule screen with alerts
- Photo capture
- Touch point history timeline

Priority: Phase 2 (after Daily Walkthrough)
Estimated: 17 hours (2-3 days)

Team: 777 Wolfpack
Status: Spec Complete - Ready for Phase 2
2025-12-09 14:32:04 -08:00

173 lines
4 KiB
Markdown

# 🔐 CA Grow Ops Manager - Login Credentials
**Environment**: Production
**URL**: <https://777wolfpack.runfoo.run>
**Last Updated**: 2025-12-09
---
## Default User Accounts
### Owner Account
- **Email**: `admin@runfoo.run`
- **Password**: `password123`
## Login Credentials
All test users have the password: `password123`
### Test Users (All Roles)
| Email | Password | Role | Hourly Rate | Name |
|-------|----------|------|-------------|------|
| <admin@runfoo.run> | password123 | OWNER | $50.00 | Facility Owner |
| <manager@runfoo.run> | password123 | MANAGER | $35.00 | Test Manager |
| <grower@runfoo.run> | password123 | GROWER | $30.00 | Test Grower |
| <staff@runfoo.run> | password123 | STAFF | $20.00 | Test Staff |
### 777 Wolfpack Team (Production Users)
| Email | Password | Role | Hourly Rate | Name |
|-------|----------|------|-------------|------|
| <travis@runfoo.run> | password123 | MANAGER | $35.00 | Travis |
| <jen@runfoo.run> | password123 | GROWER | $30.00 | Jen |
| <king@runfoo.run> | password123 | GROWER | $30.00 | King |
---
## Seeded Data
### Rooms
The following rooms are pre-configured:
1. **Veg Room 1** - VEG type, 1200 sqft
2. **Flower Room A** - FLOWER type, 2500 sqft
3. **Flower Room B** - FLOWER type, 2500 sqft
4. **Dry Room** - DRY type, 800 sqft
---
## Testing the Application
### 1. Login
1. Navigate to <https://777wolfpack.runfoo.run>
2. Enter email: `admin@runfoo.run`
3. Enter password: `password123`
4. Click "Login"
### 2. Available Features (Currently Implemented)
-**Dashboard**: Overview of facility operations
-**Rooms**: View and manage grow rooms
-**Batches**: View and manage cultivation batches
-**Timeclock**: Clock in/out for labor tracking
### 3. Features In Development
-**Tasks**: Task management and scheduling
-**Compliance**: Document storage and audit packets
-**Settings**: User preferences and management
-**Reports**: Labor analytics and cost tracking
---
## API Access
### Base URL
```
https://777wolfpack.runfoo.run/api
```
### Authentication
```bash
# Login to get JWT token
curl -X POST https://777wolfpack.runfoo.run/api/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "admin@runfoo.run",
"password": "password123"
}'
# Response includes:
# - accessToken (use in Authorization header)
# - refreshToken (for token renewal)
```
### Example API Calls
```bash
# Get all rooms (requires auth token)
curl https://777wolfpack.runfoo.run/api/rooms \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
# Get all batches
curl https://777wolfpack.runfoo.run/api/batches \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
```
---
## Security Notes
⚠️ **IMPORTANT**: These are development/demo credentials.
**Before production use**:
1. Change all default passwords
2. Implement proper password hashing (currently using plaintext in seed)
3. Enable 2FA for owner accounts
4. Rotate JWT secrets
5. Implement password complexity requirements
---
## Troubleshooting
### "Invalid credentials" error
- Verify you're using the exact email: `admin@runfoo.run`
- Password is case-sensitive: `password123`
- Check if database has been seeded (see deployment logs)
### "Cannot connect to server"
- Verify backend is healthy: `docker compose ps`
- Check backend logs: `docker compose logs backend`
- Verify Traefik routing is working
### Need to re-seed database
```bash
ssh admin@nexus-vector
cd /srv/containers/ca-grow-ops-manager
docker compose exec backend npx prisma db seed
```
---
## Adding More Users
Currently, user registration is only available through the seed script or direct database access.
**Coming in Sprint 2**: Admin user management UI
**Temporary workaround** (SSH to nexus-vector):
```bash
docker compose exec backend npx prisma studio
# Opens Prisma Studio on localhost:5555
# Add users manually through the UI
```
---
**Need help?** Check the logs:
```bash
ssh admin@nexus-vector "cd /srv/containers/ca-grow-ops-manager && docker compose logs -f"
```