2 Commits

Author SHA1 Message Date
6fe029f531 Use prebuilt image and rename compose file
Some checks failed
CI / ci (push) Failing after 14s
Replace local build with prebuilt image
Image: gitea.jeanlucmakiola.de/makiolaj/gearbox:latest
2026-03-24 09:28:31 +01:00
725901623b chore: unify dev setup with concurrently
Adds concurrently to start both the Vite frontend and Hono backend simultaneously in one terminal via the `bun run dev` command. Also updates documentation in README.md and CLAUDE.md to reflect the new development workflow.
2026-03-24 09:28:31 +01:00
4 changed files with 91 additions and 49 deletions

View File

@@ -9,7 +9,8 @@ GearBox is a single-user web app for managing gear collections (bikepacking, sim
## Commands
```bash
# Development (run both in separate terminals)
# Development
bun run dev # Starts both Vite client (:5173) and Hono server (:3000) concurrently
bun run dev:client # Vite dev server on :5173 (proxies /api to :3000)
bun run dev:server # Hono server on :3000 with hot reload

View File

@@ -10,7 +10,7 @@ A single-user web app for managing gear collections (bikepacking, sim racing, et
- Research threads for comparing candidates before buying
- Image uploads for items and candidates
## Quick Start
## Quick Start (Docker)
### Docker Compose (recommended)
@@ -81,3 +81,42 @@ docker compose up -d
```
Database migrations run automatically on startup.
## Tech Stack
- **Runtime & Package Manager:** [Bun](https://bun.sh)
- **Frontend:** React 19, Vite, TanStack Router, TanStack Query, Tailwind CSS v4, Zustand
- **Backend:** Hono, Drizzle ORM, SQLite (`bun:sqlite`)
## Local Development Setup
### Prerequisites
You must have [Bun](https://bun.sh/) installed on your machine. Docker is not required for local development.
### Installation
1. Install all dependencies:
```bash
bun install
```
2. Initialize the local SQLite database (`gearbox.db`):
```bash
bun run db:push
```
3. Start the development servers:
```bash
bun run dev
```
This single command will start both the Vite frontend server (port `5173`) and the Hono backend server (port `3000`) concurrently.
Open [http://localhost:5173](http://localhost:5173) in your browser to view the app.
## Additional Commands
- `bun run build` — Build the production assets into `dist/client/`
- `bun test` — Run the test suite
- `bun run lint` — Check formatting and lint rules using Biome
- `bun run db:generate` — Generate Drizzle migrations after making schema changes

View File

@@ -4,6 +4,7 @@
"type": "module",
"private": true,
"scripts": {
"dev": "concurrently -k -c \"blue,green\" -n \"server,client\" \"bun run dev:server\" \"bun run dev:client\"",
"dev:client": "vite",
"dev:server": "bun --hot src/server/index.ts",
"build": "vite build",
@@ -23,6 +24,7 @@
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"better-sqlite3": "^12.8.0",
"concurrently": "^9.1.2",
"drizzle-kit": "^0.31.9",
"vite": "^8.0.0"
},