judge2020 / workers-link-shortener

Use Cloudflare Workers KV as a link shortener

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workers Link Shortener (v2)

A link shortener built on Cloudflare Workers utilizing Durable Objects to provide things like analytics.

This is not backwards compatible with Workers Link Shortener v1.

dev

Prerequisites: node LTS, wrangler

  1. clone repository and open in vscode/console
  2. run npm install
  3. edit wrangler.toml and set account_id to your account id
  4. generate a KV namespace like so (the name can be different if you wish):
wrangler kv:namespace create WLS_LINK_LIST
  1. Append the KV namespace config it gives you to your wrangler.toml
  2. run npm run build (builds the frontend, however it is non-functional for now, see #21)
  3. run wrangler publish

Customize frontend configuration

See Configuration Reference.

About

Use Cloudflare Workers KV as a link shortener

License:MIT License


Languages

Language:TypeScript 45.9%Language:Vue 44.7%Language:JavaScript 5.7%Language:HTML 3.7%