exbug / Url-Shorten-Worker

A URL Shortener created using Cloudflare worker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Url-Shorten-Worker

A URL Shortener created using Cloudflare Worker

Getting start

去Workers KV中创建一个命名空间

Go to Workers KV and create a namespace.

去Worker的Settings选选项卡中绑定KV Namespace

Bind an instance of a KV Namespace to access its data in a Worker.

其中Variable name填写LINKS, KV namespace填写你刚刚创建的命名空间

Where Variable name should set as LINKS and KV namespace is the namespace you just created in the first step.

复制本项目中的index.js的代码到Cloudlare Worker

Copy the index.js code from this project to Cloudlare Worker.

点击Save and Deploy

Click Save and Deploy

Demo

https://5it.me

About

A URL Shortener created using Cloudflare worker

License:MIT License


Languages

Language:JavaScript 100.0%