Set up initial project and files
This commit is contained in:
1 parent
be9d1c0f61
commit
8839aac24b
18 files changed
+1754
No files matched your search
@@ -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'"
|
||||
Reference in new issue
Block a user