Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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

Last synced: about 1 month ago
JSON representation

๐Ÿ”ฅ Deploy DeepLX on Cloudflare

Awesome Lists containing this project

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`.