Initial commit

This commit is contained in:
kikootwo
2026-01-28 11:41:24 -05:00
commit a3ba192fbd
257 changed files with 89482 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
#!/bin/sh
set -e
echo "🚀 ReadMeABook - Starting application..."
echo ""
# Run database migrations
echo "📦 Setting up database..."
if npx prisma db push --skip-generate --accept-data-loss; then
echo "✅ Database schema synced successfully"
else
echo "❌ Database setup failed"
exit 1
fi
echo ""
# Generate Prisma client (in case schema changed)
echo "🔧 Generating Prisma client..."
if npx prisma generate; then
echo "✅ Prisma client generated"
else
echo "⚠️ Prisma client generation failed"
fi
echo ""
echo "✨ Application ready - starting server..."
echo "📍 Health check: http://localhost:3030/api/health"
echo "🔧 Setup wizard: http://localhost:3030/setup"
echo ""
# Execute the CMD
exec "$@"