https://github.com/abdulkader-safi/bun-hono-drizzle-orm-tailwind-and-htmx
https://github.com/abdulkader-safi/bun-hono-drizzle-orm-tailwind-and-htmx
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abdulkader-safi/bun-hono-drizzle-orm-tailwind-and-htmx
- Owner: Abdulkader-Safi
- Created: 2024-04-06T16:35:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-17T06:19:12.000Z (about 1 year ago)
- Last Synced: 2025-02-15T07:48:56.975Z (4 months ago)
- Language: TypeScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- 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.
### 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
```