https://github.com/walshydev/message-board
https://github.com/walshydev/message-board
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/walshydev/message-board
- Owner: WalshyDev
- License: mit
- Created: 2023-02-14T03:07:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-14T03:08:18.000Z (about 2 years ago)
- Last Synced: 2025-04-19T23:54:48.216Z (15 days ago)
- Language: TypeScript
- Size: 63.5 KB
- Stars: 3
- Watchers: 2
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Message board
This is an example application of using D1 in [Cloudflare Pages](https://pages.dev).
## 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`

6. Trigger a new deployment and enjoy the demo!