j-sneh / message-board-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Message board

This is an example application of using D1 in Cloudflare Pages.

Setup

  1. Fork this repository
  2. Create a D1 database with npx wrangler d1 create message-board
  3. Run the migrations with npx wrangler d1 migrations apply message-board
  4. Go to the Cloudflare dashboard and create a Pages project pointing to the repository - https://dash.cloudflare.com?to=/:account/pages/new
  5. Head over to "Settings" -> "Functions" and bind your D1 database to DB "message-board" database bound to D1 in the Pages dashboard
  6. Trigger a new deployment and enjoy the demo!

About

License:MIT License


Languages

Language:TypeScript 93.3%Language:HTML 3.4%Language:JavaScript 2.8%Language:CSS 0.6%