Simple serverless website built with Cloudflare services to explore their ecosystem—using R2 for storage, D1 for the database, Pages for static hosting, and Workers for serverless functions.
git clone https://github.com/vwh/vwh-upload
cd vwh-upload
bun install
cd client
bun install
-
Create the database:
bun run db:create
-
Update the Database ID in
wrangler.toml
. -
Migrate the database:
bun run db:migrate
(Run migration twice to ensure updates are applied.)
bun run bucket:create
-
Create the page:
bun run page:create
-
Build the client code:
cd client bun run build
-
Deploy the page:
bun run page:deploy
bun run deploy