Simple URL shortener based on Cloudflare KV and Analytics Engine.
- Cloudflare account
- Wrangler installed (
brew add wrangler)
npm inpm run devThe project uses Vitest for testing. To run the tests:
npm testTo run tests in watch mode during development:
npm run test:watchDeployment happens with each commit to the main branch.
It's possible to deploy manually too:
npm run deploy