Creating Blog with Sonik.
- Sonik (Hono + Vite based framework)
- Preact
- Zod
- Tailwind CSS
- Cloudflare Pages
- Cloudflare D1
- cf-bindings-proxy
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 D1:
yarn wrangler d1 create sonik-blog --experimental-backend
yarn wrangler d1 execute sonik-blog --local --file=./blog.sql
Edit wrangler.toml
:
cp wrangler.sample.toml wrangler.toml
code wrangler.toml
Run proxy for Cloudflare Bindings:
yarn proxy
Dev:
yarn dev
Build:
yarn build
Deploy:
yarn deploy
Yusuke Wada https://github.com/yusukebe
MIT
Heavily inspired by fresh-blog by azukiazusa1