Rebrand from Casera/MyCrib to honeyDue
Total rebrand across all Go API source files: - Go module path: casera-api -> honeydue-api - All imports updated (130+ files) - Docker: containers, images, networks renamed - Email templates: support email, noreply, icon URL - Domains: casera.app/mycrib.treytartt.com -> honeyDue.treytartt.com - Bundle IDs: com.tt.casera -> com.tt.honeyDue - IAP product IDs updated - Landing page, admin panel, config defaults - Seeds, CI workflows, Makefile, docs - Database table names preserved (no migration needed) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
18
dev.sh
18
dev.sh
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Development helper script for MyCrib API (Go)
|
||||
# Development helper script for HoneyDue API (Go)
|
||||
|
||||
set -e
|
||||
|
||||
@@ -67,7 +67,7 @@ case "$1" in
|
||||
;;
|
||||
db)
|
||||
echo "🐘 Connecting to PostgreSQL..."
|
||||
docker-compose $COMPOSE_FILES exec db psql -U ${POSTGRES_USER:-mycrib} -d ${POSTGRES_DB:-mycrib}
|
||||
docker-compose $COMPOSE_FILES exec db psql -U ${POSTGRES_USER:-honeydue} -d ${POSTGRES_DB:-honeydue}
|
||||
;;
|
||||
redis)
|
||||
echo "📮 Connecting to Redis..."
|
||||
@@ -75,23 +75,23 @@ case "$1" in
|
||||
;;
|
||||
seed)
|
||||
echo "🌱 Seeding lookup data..."
|
||||
docker-compose $COMPOSE_FILES exec -T db psql -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-mycrib} -f - < seeds/001_lookups.sql
|
||||
docker-compose $COMPOSE_FILES exec -T db psql -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-honeydue} -f - < seeds/001_lookups.sql
|
||||
echo "✅ Lookup data seeded"
|
||||
;;
|
||||
seed-test)
|
||||
echo "🧪 Seeding test data..."
|
||||
docker-compose $COMPOSE_FILES exec -T db psql -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-mycrib} -f - < seeds/002_test_data.sql
|
||||
docker-compose $COMPOSE_FILES exec -T db psql -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-honeydue} -f - < seeds/002_test_data.sql
|
||||
echo "✅ Test data seeded"
|
||||
;;
|
||||
seed-all)
|
||||
echo "🌱 Seeding all data..."
|
||||
docker-compose $COMPOSE_FILES exec -T db psql -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-mycrib} -f - < seeds/001_lookups.sql
|
||||
docker-compose $COMPOSE_FILES exec -T db psql -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-mycrib} -f - < seeds/002_test_data.sql
|
||||
docker-compose $COMPOSE_FILES exec -T db psql -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-honeydue} -f - < seeds/001_lookups.sql
|
||||
docker-compose $COMPOSE_FILES exec -T db psql -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-honeydue} -f - < seeds/002_test_data.sql
|
||||
echo "✅ All data seeded"
|
||||
;;
|
||||
seed-admin)
|
||||
echo "🔐 Seeding admin user..."
|
||||
docker-compose $COMPOSE_FILES exec -T db psql -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-mycrib} -f - < seeds/003_admin_user.sql
|
||||
docker-compose $COMPOSE_FILES exec -T db psql -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-honeydue} -f - < seeds/003_admin_user.sql
|
||||
echo "✅ Admin user seeded"
|
||||
;;
|
||||
admin-install)
|
||||
@@ -115,7 +115,7 @@ case "$1" in
|
||||
migrate)
|
||||
echo "📊 Running database migrations..."
|
||||
# GORM auto-migrates on API startup, but we need GoAdmin tables
|
||||
docker-compose $COMPOSE_FILES exec -T db psql -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-mycrib} -f - < migrations/002_goadmin_tables.up.sql
|
||||
docker-compose $COMPOSE_FILES exec -T db psql -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-honeydue} -f - < migrations/002_goadmin_tables.up.sql
|
||||
echo "✅ Migrations complete"
|
||||
;;
|
||||
clean)
|
||||
@@ -134,7 +134,7 @@ case "$1" in
|
||||
echo "🚀 Starting development environment..."
|
||||
docker-compose $COMPOSE_FILES up
|
||||
else
|
||||
echo "Development helper script for MyCrib API (Go)"
|
||||
echo "Development helper script for HoneyDue API (Go)"
|
||||
echo ""
|
||||
echo "Usage: ./dev.sh [command]"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user