https://github.com/yusukebe/sonik-blog
https://github.com/yusukebe/sonik-blog
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yusukebe/sonik-blog
- Owner: yusukebe
- Created: 2023-08-07T13:54:49.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T01:47:29.000Z (over 2 years ago)
- Last Synced: 2025-06-25T21:39:46.517Z (12 months ago)
- Language: TypeScript
- Homepage:
- Size: 21.5 KB
- Stars: 27
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sonik Blog
Creating Blog with [Sonik](https://github.com/yusukebe/sonik).
## Stack
* Sonik (Hono + Vite based framework)
* Preact
* Zod
* Tailwind CSS
* Cloudflare Pages
* Cloudflare D1
## Demo
SSR with Island:
https://github.com/yusukebe/sonik-blog/assets/10682/47ae2757-3050-4b61-864f-158257d75806
HMR with Cloudflare Bindings:
https://github.com/yusukebe/sonik-blog/assets/10682/73fd1303-b26a-45b9-8ea8-bc8905ccfb0f
## Usage
Setup your local database:
```txt
mkdir -p .mf/d1/DB/
sqlite3 .mf/d1/DB/db.sqlite < blog.sql
```
Setup D1:
```txt
yarn wrangler d1 create sonik-blog
yarn wrangler d1 execute sonik-blog --file=./blog.sql
```
Edit `wrangler.toml`:
```txt
cp wrangler.sample.toml wrangler.toml
code wrangler.toml
```
Dev:
```txt
yarn dev
```
Build:
```txt
yarn build
```
Deploy:
```txt
yarn deploy
```
## Author
Yusuke Wada
## License
MIT
Heavily inspired by [fresh-blog by azukiazusa1](https://github.com/azukiazusa1/fresh-blog)