Clipper is an at-home dog grooming service in Seoul. Customers pick a package, choose a time, and a groomer comes to them. This is the booking application.
It runs as a vinext application on Cloudflare Workers and uses a local Cloudflare D1 database.
You need a recent Node.js installation. A Cloudflare account is not required for local development.
From the cloned clipper directory, install the dependencies:
npm installCreate the local D1 database by applying the initial migration:
npm run db:migrate:localAdd the starter groomers, packages, schedules, and appointments:
npm run db:seed:localStart the development server:
npm run devOpen http://localhost:3000. If that port is already occupied, vinext will print the alternative local URL in the terminal.
The migration and seed commands only need to be run the first time you clone the repository. Wrangler stores the generated local database in .wrangler/, which is excluded from Git.
npm run devstarts the vinext development server.npm run buildbuilds the Cloudflare Worker output.npm run startruns the built Worker locally with Wrangler.npm run db:migrate:localapplies pending migrations to local D1.npm run db:seed:localresets and seeds the starter data.npm run deploydeploys the application to Cloudflare.