Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 903 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 903 Bytes

Created as a submission to dev.to challange: https://dev.to/challenges/cloudflare

app

Demo

demo here: link to the demo

Getting Started

npm install
npm run dev

Open http://localhost:3000 with your browser to see the result.

Storage

By default app is using KV Cloudflare storage, but you can switch to your own!

If you would like to use your own, change exported storage object in /app/_config/storage.ts

It should impelement interface:

export interface Storage<T> {
  get: (key: string) => Promise<T>;
  set: (key: string, value: string) => Promise<void>;
  remove: (key: string) => Promise<void>;
}