- Add local-storage.ts with smart folder structure:
/storage/products/{brand}/{state}/{product_id}/
- Add storage-adapter.ts unified abstraction
- Add docker-compose.local.yml (NO MinIO)
- Add start-local.sh convenience script
- Update CLAUDE.md with:
- PERMANENT RULES section (no data deletion)
- DEPLOYMENT AUTHORIZATION requirements
- LOCAL DEVELOPMENT defaults
- STORAGE BEHAVIOR documentation
- FORBIDDEN ACTIONS list
- UI ANONYMIZATION rules
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
577 B
Bash
Executable File
25 lines
577 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Start Local CannaiQ Stack
|
|
#
|
|
# Runs PostgreSQL + Backend with local filesystem storage.
|
|
# NO MinIO, NO Kubernetes, NO remote connections.
|
|
#
|
|
|
|
set -e
|
|
|
|
echo "Starting CannaiQ Local Development Stack..."
|
|
echo "============================================"
|
|
echo " - PostgreSQL: localhost:54320"
|
|
echo " - Backend API: localhost:3010"
|
|
echo " - Storage: ./storage (local filesystem)"
|
|
echo " - NO MinIO"
|
|
echo ""
|
|
|
|
# Ensure storage directories exist
|
|
mkdir -p storage/products
|
|
mkdir -p storage/brands
|
|
|
|
# Start services
|
|
docker-compose -f docker-compose.local.yml up "$@"
|