Skip to content

pablogamboa/shorty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

☁️ Shorty: A Cloudflare Workers-powered link shortener

This is a link shortener that runs as a Cloudflare Worker.

  1. Ensure Wrangler is installed on your local machine and authenticate with Cloudflare:

    $ npm i @cloudflare/wrangler -g
    $ wrangler login
  2. Create the Workers KV namespace for the shortener:

    $ wrangler kv:namespace create "SHORTY"
    $ wrangler kv:namespace create "SHORTY" --preview

    Copy the id you get in the terminal output to wrangler.toml in place of ID_HERE, and copy the preview_id you get in the terminal output in place of PREVIEW_ID_HERE.

  3. Deploy the Worker: wrangler publish.

About

A simple URL shortener

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published