Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cdbrw/htmx-bun-hono
A small ToDo application built using HTMX, Bun, Hono, Drizzle ORM and more!
https://github.com/cdbrw/htmx-bun-hono
bunjs drizzle-orm honojs htmx sqlite tailwindcss
Last synced: 8 days ago
JSON representation
A small ToDo application built using HTMX, Bun, Hono, Drizzle ORM and more!
- Host: GitHub
- URL: https://github.com/cdbrw/htmx-bun-hono
- Owner: cdbrw
- Created: 2024-01-30T05:43:53.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-01T00:06:20.000Z (10 months ago)
- Last Synced: 2024-10-31T09:41:49.710Z (15 days ago)
- Topics: bunjs, drizzle-orm, honojs, htmx, sqlite, tailwindcss
- Language: TypeScript
- Homepage: https://youtu.be/arVNHfFCJfU
- Size: 52.7 KB
- Stars: 28
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 🌐 HTMX - Bun, Hono, Drizzle ORM, Tailwind
A simple ToDo app meant to show some of the HTMX basics. It is all running using Bun, with Hono for the routing, Drizzle as the ORM for the SQLite database and Tailwind for styling.To see how this whole project was put together, you can [watch the full video here](https://youtu.be/arVNHfFCJfU).
### Setup
Install all dependencies
```
bun install
```
Create a `.env` file
```
PORT=3049
```
Create SQLite DB + Generate migrations
```
bunx drizzle-kit generate:sqlite --schema ./db/schema.ts
```
Apply migrations
```
bun run ./db/migrate.ts
```
Run the seed script
```
bun run ./db/seed.ts
```### Start
Everything should be set up now! All we have left to do is run:
```
bun run dev
```