Skip to content

xiaolanglanglang/short-url-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Short Url Generator

Usage

  • Create 3 kv libraries in cloudflare worker, named ShortUrlData, ShortUrlUser, ShortUrlAssets.

  • Adding records to ShortUrlUser

    key:

    {random_str}

    value:

    {"username": "{username}", "api_key": "{random_str}"}
  • Create the wrangler.toml file.

example:

name = "{short-url-app}"
type = "rust"
account_id = "{account_id}"
workers_dev = false
route = "{https://example.com/*}"
zone_id = "{zone_id}"
kv-namespaces = [
         { binding = "ShortUrlData", id = "" },
         { binding = "ShortUrlUser", id = "" },
         { binding = "ShortUrlAssets", id = "" },
]
  • Use the command wrangler publish to publish the application.

About

Short link generation tool using cloudflare worker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published