Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

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
```