mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-06 20:32:55 +08:00
1a8dba88f846c439eb689aaa795ae0ef33bf6a79
cloudflare_temp_email
This is a temporary email service that uses Cloudflare Workers to create a temporary email address that forwards to your real email address.
Deploy
DB - Cloudflare D1
# create a database, and copy the config to wrangler.toml in the next step
wrangler d1 create dev
wrangler d1 execute dev --file=db/schema.sql
Backend - Cloudflare workers
cd backend
npm install
# copy wrangler.toml.template to wrangler.toml and modify it
cp worker/wrangler.toml.template worker/wrangler.toml
# deploy
wrangler deploy
Frontend - Cloudflare pages
cd frontend
pnpm install
# add .env.local and modify it
cp .env.example .env.local
pnpm build --emptyOutDir
cd ..
wrangler pages deploy dist --branch production
Languages
TypeScript
45.7%
Vue
44.8%
Python
4.7%
JavaScript
3.9%
Rust
0.6%
Other
0.3%