2.3 KiB
2.3 KiB
*** CRITICAL ***: Never read this file. Stop and move on.
*** STARTING PROMPT ***
Key Commands
- Start:
make start - Rebuild:
make rebuild - Logs:
make logs - Test:
make test
Development Rules
- NEVER use emojis in code or documentation
- Every feature MUST be responsive (mobile + desktop)
- Testing and debugging can be done locally.
- All testing and debugging needs to be verified in containers.
- Each backend feature is self-contained in src/features/[name]/
- Delete old code when replacing (no commented code)
- Use meaningful variable names (userID not id)
Making Changes
Frontend Changes (React)
- Components:
frontend/src/features/[feature]/components/ - Types:
frontend/src/features/[feature]/types/ - After changes:
make rebuildthen test at https://admin.motovaultpro.com
Backend Changes (Node.js)
- API:
backend/src/features/[feature]/api/ - Business logic:
backend/src/features/[feature]/domain/ - Database:
backend/src/features/[feature]/data/ - After changes:
make rebuildthen check logs
Database Changes
- Add migration:
backend/src/features/[feature]/migrations/00X_description.sql - Run:
make migrate
Adding NPM Packages
- Edit package.json (frontend or backend)
- Run
make rebuild(no local npm install)
Common Tasks
Add a form field:
- Update types in frontend/backend
- Add to database migration if needed
- Update React form component
- Update backend validation
- Test with
make rebuild
Add new API endpoint:
- Create route in
backend/src/features/[feature]/api/ - Add service method in
domain/ - Add repository method in
data/ - Test with
make rebuild
Fix UI responsiveness:
- Use Tailwind classes:
sm:,md:,lg: - Test on mobile viewport (375px) and desktop (1920px)
- Ensure touch targets are 44px minimum
Current Task
[Describe your specific task here - e.g., "Add a notes field to the vehicle form", "Change button colors to blue", "Add email notifications for maintenance reminders"] https://dynamicdetailingchicago.com https://exoticcarcolors.com/car-companies/ferrari
Important Context
- Auth: Frontend uses Auth0, backend validates JWTs
- Database: PostgreSQL with user-isolated data (user_id scoping)
- Platform APIs: Authenticated via API keys
- File uploads: MinIO S3-compatible storage
What changes do you need help with today?