Files
2025-01-21 20:43:50 +08:00

52 lines
1.2 KiB
Markdown

<p align="center"><img src="./web/public/icon.svg" width="64"></p>
<h1 align="center">cf-drop</h1>
<p align="center">🗃️ Private File/Text Box — Deploy on Cloudflare Workers</p>
<table width="100%">
<tr>
<td>
<img src="./image.png" width="200">
</td>
<td>
<ul>
<li>⚡ <strong>Serverless</strong> on Cloudflare Worker</li>
<li>📱 <strong>PWA ready!</strong> for mobile</li>
<li>🔑 <strong>Password protected</strong></li>
<li>📦 <strong>Download</strong> as Tarball</li>
<li>🚚 <strong>Resumable download link</strong></li>
<li>🔗 <strong>Shareable download link</strong></li>
</ul>
</td>
</tr>
</table>
## 🚀 Quick Start
Follow these steps to get up and running quickly:
(Prerequisites: Node.js >= 20, pnpm)
```sh
pnpm install
npx wrangler r2 bucket create cf-drop
npx wrangler d1 create cf-drop
# 📝 edit wrangler.toml
# 1. write down the database_id
# 2. set the password
# then...
npm run deploy
```
## 🎨 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
- **Development** - `pnpm dev`