Skip to content

catcoding-code/message-board

 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 93.2%
  • HTML 3.4%
  • JavaScript 2.8%
  • CSS 0.6%