Set up initial project and files

This commit is contained in:
Young Lee
2025-02-27 14:51:38 -08:00
parent be9d1c0f61
commit 8839aac24b
18 changed files with 1754 additions and 0 deletions
Executable
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
# Email to RSS setup script
echo "🚀 Setting up Email to RSS service..."
# Install dependencies
echo "📦 Installing dependencies..."
npm install
# Create KV namespaces
echo "🗄️ Creating KV namespaces..."
echo "You'll need to update wrangler.toml with these IDs."
npx wrangler kv:namespace create EMAIL_STORAGE
npx wrangler kv:namespace create EMAIL_STORAGE --preview
# Set up admin password
echo "🔐 Setting up admin password..."
read -p "Enter admin password: " admin_password
echo "$admin_password" | npx wrangler secret put ADMIN_PASSWORD
# Prompt for domain
read -p "Enter your domain (e.g., yourdomain.com): " domain
echo "📝 Please update your domain in wrangler.toml"
echo "✅ Setup complete! Next steps:"
echo "1. Update wrangler.toml with your KV namespace IDs and domain"
echo "2. Set up MX records for your domain with ForwardEmail.net"
echo "3. Deploy with 'npm run deploy'"