Creating Blog with Sonik.
- Sonik (Hono + Vite based framework)
- Preact
- Zod
- Tailwind CSS
- Cloudflare Pages
- Cloudflare D1
SSR with Island:
Screen.Recording.2023-08-07.at.23.07.19.mov
HMR with Cloudflare Bindings:
Screen.Recording.2023-08-07.at.23.11.51.mov
Setup your local database:
mkdir -p .mf/d1/DB/
sqlite3 .mf/d1/DB/db.sqlite < blog.sqlSetup D1:
yarn wrangler d1 create sonik-blog
yarn wrangler d1 execute sonik-blog --file=./blog.sqlEdit wrangler.toml:
cp wrangler.sample.toml wrangler.toml
code wrangler.tomlDev:
yarn devBuild:
yarn buildDeploy:
yarn deployYusuke Wada https://github.com/yusukebe
MIT
Heavily inspired by fresh-blog by azukiazusa1