Skip to content

craigsdennis/shorty-dot-dev

Repository files navigation

Image for: Repository files navigation

shrty.dev

This is a #BuildInPublic project of a URL Shortening service built on the Cloudflare Developer Platform.

It makes use of the Key Value service KV to store the shorty and the URL.

It also uses the Workers Analytics Engine to track and report on usage.

Resources

Image for: Resources

Setup your own

Image for: Setup your own

Setup

Build a new KV service for yourself to track the URLs

npx wrangler kv:namespace create URLS

Replace wrangler.toml settings for the KV section

Create a new Workers Analytics Engine API token

Copy the .dev.vars.example to .dev.vars (for local development)

Regenerate types

npx wrangler cf-typegen

Develop

Image for: Develop
npm run dev

Deploy

Image for: Deploy
npm run deploy

About

Image for: About

A URL Shortener built on Cloudflare Developer Platform

Resources

Stars

Watchers

Forks

Releases

Image for: Releases
No releases published

Packages

Image for: Packages 0
No packages published