-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Labels
FeatureHigh PriorityStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programbackendgood first issueGood for newcomersGood for newcomersintegration
Description
Description:
Track and analyze pet behavior patterns to help owners and vets identify issues.
What You'll Build:
A behavior logging system where owners can record their pet's behavior and share patterns with veterinarians.
Files to Create:
backend/src/behavior/
├── behavior.module.ts
├── behavior.controller.ts
├── behavior.service.ts
├── entities/
│ └── behavior-log.entity.ts
└── dto/
├── create-behavior-log.dto.ts
└── behavior-filter.dto.ts
Step-by-Step Tasks:
- Create behavior module:
nest g module behavior - Create controller:
nest g controller behavior - Create service:
nest g service behavior - Create BehaviorLog entity
- Define behavior categories (aggression, anxiety, lethargy, etc.)
- Create POST /pets/:petId/behavior endpoint
- Create GET /pets/:petId/behavior endpoint with filters
- Add behavior trend analysis
- Add sharing with vet functionality
- Add behavior alerts for concerning patterns
- Write tests
API Endpoints:
POST /pets/:petId/behavior - Log behavior
GET /pets/:petId/behavior - Get behavior logs
GET /pets/:petId/behavior/trends - Get behavior trends
PUT /pets/:petId/behavior/:id - Update behavior log
DELETE /pets/:petId/behavior/:id - Delete behavior logDatabase Schema:
Sql
behavior_logs: id, pet_id, category, severity, description, date, duration,
triggers, location, shared_with_vet, created_at
Behavior Categories:
- Aggression
- Anxiety
- Lethargy
- Excessive barking/meowing
- Destructive behavior
- Appetite changes
- Sleep changes
- Other
Acceptance Criteria:
- ✅ Users can log behavior with category and severity
- ✅ Filter by category, date range, severity
- ✅ Identify behavior patterns (frequency, triggers)
- ✅ Share behavior logs with vet
- ✅ Alert for concerning behavior patterns
- ✅ Export behavior report
- ✅ Tests with 80%+ coverage
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FeatureHigh PriorityStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programbackendgood first issueGood for newcomersGood for newcomersintegration