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