Files
cf-drop/README.md
T
2025-01-21 20:15:24 +08:00

1.3 KiB

cf-drop

🗃️ Private File/Text Box — Deploy on Cloudflare Workers

  • ⚡ Serverless on Cloudflare Worker
  • 📱 PWA ready! for mobile
  • 🔑 Password protected
  • 📦 Download as Tarball
  • 🚚 Resumable download link
  • 🔗 Shareable download link

🚀 Quick Start

Follow these steps to get up and running quickly:

# Prerequisites: Node.js >= 20, pnpm

# Install dependencies
pnpm install

# Create R2 bucket
npx wrangler r2 bucket create cf-drop

# Create D1 database
npx wrangler d1 create cf-drop

# ... copy the database_id to wrangler.toml

# Deploy the application
npm run deploy

# For local development
# npm run dev

You can access the app on mobile and install it as a Progressive Web App (PWA).

🎨 Customize

Make cf-drop your own by customizing the following:

  • 🔑 Set password via ./wrangler.toml
  • 🎨 Change theme color in ./web/public/manifest.json
  • 💡 Find database_id from Cloudflare Dashboard - D1 SQL page

Happy deploying! 🚀