/sonik-blog

Primary LanguageTypeScript

Sonik Blog

Creating Blog with Sonik.

Stack

  • Sonik (Hono + Vite based framework)
  • Preact
  • Zod
  • Tailwind CSS
  • Cloudflare Pages
  • Cloudflare D1
  • cf-bindings-proxy

Demo

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

Usage

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

Author

Yusuke Wada https://github.com/yusukebe

License

MIT

Heavily inspired by fresh-blog by azukiazusa1