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: about 1 month ago
JSON representation
๐ฅ Deploy DeepLX on Cloudflare
- Host: GitHub
- URL: https://github.com/ifyour/deeplx-for-cloudflare
- Owner: ifyour
- Created: 2023-11-13T15:52:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-14T15:01:52.000Z (9 months ago)
- Last Synced: 2024-08-01T08:08:27.601Z (4 months ago)
- Language: TypeScript
- Homepage: https://deeplx.mingming.dev/
- Size: 112 KB
- Stars: 465
- Watchers: 2
- Forks: 63
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-cloudflare - deeplx-for-cloudflare
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`.