Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/ifyour/deeplx-for-cloudflare

๐Ÿ”ฅ Deploy DeepLX on Cloudflare
https://github.com/ifyour/deeplx-for-cloudflare

Last synced: 21 days ago
JSON representation

๐Ÿ”ฅ Deploy DeepLX on Cloudflare

Lists

README

        

Deploy DeepLX on Cloudflare.

## Usage

```bash
curl --location 'https://deeplx.mingming.dev/translate' \
--header 'Content-Type: application/json' \
--data '{
"text": "ๅ…่ดน๏ผŒๆ— ้™้‡็ฟป่ฏ‘ API",
"source_lang": "zh",
"target_lang": "en"
}'
```

Development

```
npm i && npm run dev
```

Deploy

```
npm run deploy
```

Another way to deploy

Open the [Cloudflare dashboard](https://dash.cloudflare.com/), select `Workers & Pages` -> `Create Application` -> `Create Worker` -> `Deploy` -> `Edit Code`, and paste [/dist/index.js](https://github.com/ifyour/deeplx-for-cloudflare/blob/main/dist/index.js) code, then click `Save and Deploy`.