This project uses EdgeDB as the database, Hono as the web framework, and Cloudflare for deployment and edge computing capabilities.
- Node.js
- EdgeDB
- Cloudflare account (for deployment)
-
Clone the repository:
git clone https://github.com/stemil23/Hono-EdgeDB-Cloudflare-starter
-
Create a
.dev.vars
file in the project root and add your EdgeDB DSN:EDGEDB_DSN=edgedb://edgedb:XCf58cS3v2ftZ6AUyj14hRji@localhost:10701/main
You can find your EdgeDB DSN by running:
edgedb instance credentials --insecure-dsn
-
Install dependencies:
npm install
-
Set up Cloudflare:
- Create a Cloudflare account if you don't have one
- Install the Cloudflare Wrangler CLI:
npm install -g wrangler
- Authenticate with Cloudflare:
wrangler login
To run the project in development mode:
npm run dev
To deploy the project:
npm run deploy
npx @edgedb/generate edgeql-js npx @edgedb/generate queries npx @edgedb/generate interfaces