mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-08-28 19:48:01 +08:00
feat: add docs (#122)
This commit is contained in:
+12
-5
@@ -25,12 +25,19 @@ This is a temporary email service that uses Cloudflare Workers to create a tempo
|
||||
- [x] use rust wasm to parse email
|
||||
- [x] support send email
|
||||
|
||||

|
||||

|
||||
|
||||
## Deploy
|
||||
|
||||
[Install/Update Wrangler](https://developers.cloudflare.com/workers/wrangler/install-and-update/)
|
||||
|
||||
```bash
|
||||
npm install wrangler -g
|
||||
git clone https://github.com/dreamhunter2333/cloudflare_temp_email.git
|
||||
# Switch to the latest tag or the branch you want to deploy. You can also use the main branch directly.
|
||||
# git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
|
||||
```
|
||||
|
||||
## DB - Cloudflare D1
|
||||
|
||||
```bash
|
||||
@@ -42,7 +49,7 @@ wrangler d1 execute dev --file=db/schema.sql
|
||||
# wrangler d1 execute dev --file=db/2024-04-03-patch.sql
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
### Backend - Cloudflare workers
|
||||
|
||||
@@ -68,7 +75,7 @@ pnpm run deploy
|
||||
|
||||
you can find and test the worker's url in the workers dashboard
|
||||
|
||||

|
||||

|
||||
|
||||
## Cloudflare Email Routing
|
||||
|
||||
@@ -76,7 +83,7 @@ Before you can bind an email address to your Worker, you need to enable Email Ro
|
||||
|
||||
enable email route and config email forward catch-all to the worker
|
||||
|
||||

|
||||

|
||||
|
||||
### Frontend - Cloudflare pages
|
||||
|
||||
@@ -92,7 +99,7 @@ pnpm build --emptyOutDir
|
||||
pnpm run deploy
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
## Configure sending emails
|
||||
|
||||
|
||||
Reference in New Issue
Block a user