Getting Started
ByteBox is a Next.js + Prisma + SQLite application designed for fast local-first usage.
Prerequisites
Section titled “Prerequisites”- Node.js 18+ (Node 22 recommended)
- npm 10+
Quick Setup (Recommended)
Section titled “Quick Setup (Recommended)”git clone https://github.com/pinkpixel-dev/bytebox.gitcd byteboxnpm run setupnpm run devOpen http://localhost:1334.
The setup script handles:
.envcreation (if missing)- dependency install
- Prisma client generation
- migration application
- seed data population
Manual Setup
Section titled “Manual Setup”cp .env.example .envnpm installnpx prisma generatenpx prisma migrate deploynpm run db:seednpm run devVerify Local Health
Section titled “Verify Local Health”Run these checks before contributing:
npm run lintnpx tsc --noEmitnpm run build
next buildis configured with TypeScript build errors ignored, so always runnpx tsc --noEmitexplicitly.
- Dev server defaults to port
1334throughscripts/next-with-env.cjs. - Database defaults to
file:./dev.dbunless overridden byDATABASE_URL.