/url-shortener

A lightweight URL shortener that runs on the edge.

Primary LanguageTypeScript

Screenshot

URL Shortener

Superfast Url Shortener that runs on the edge, powered by Remix, Cloudflare Pages and Cloudflare KV.

Development

You will be utlizing Wrangler for local development to emulate the Cloudflare runtime. This is already wired up in your package.json as the dev script:

# start the remix dev server and wrangler
$ npm run dev

Open up http://127.0.0.1:8788 and you should be ready to go!

Deployment

Cloudflare Pages are currently only deployable through their Git provider integrations.

If you don't already have an account, then create a Cloudflare account here and after verifying your email address with Cloudflare, go to your dashboard and follow the Cloudflare Pages deployment guide.

Configure the "Build command" should be set to npm run build, and the "Build output directory" should be set to public.

Acknowledgements

Authors