LogoBoring Template

Development Scripts

Command-line scripts to help with development, database management, and code quality.

This template uses Bun for development, but you can use any other package manager you want. Bun docs

Available Scripts

Development Scripts

Development Server

Terminal
bun dev

Starts the development server using Turbopack for fast refresh and hot module replacement.

Production Build

Terminal
bun build

Creates a production-ready build of the application.

Production Server

Terminal
bun start

Launches the application in production mode.

Linting

Terminal
bun lint

Runs ESLint to check for code quality issues.

Database Management

Database scripts help manage the application's data layer through Drizzle ORM.

Generate Migrations

Terminal
bun db:generate

Generates new database migration files based on schema changes.

Run Migrations

Terminal
bun db:migrate

Executes pending database migrations.

Push Schema Changes

Terminal
bun db:push

Pushes schema changes directly to the database.

Seed Database

Terminal
bun db:seed

Populates the database with initial data (specifically user roles).

Setup Database

Terminal
bun db:setup

Convenience script that runs migrations and seeds the database.

Database Studio

Terminal
bun db:studio

Opens Drizzle Studio for visual database management.

Drop Database Tables

Terminal
bun db:drop

Caution

Drops all tables from the database. Use with extreme caution!

Code Quality Tools

Maintain code quality with these utilities to ensure consistent formatting and clean code.

Check Formatting

Terminal
bun format

Checks if code follows the project's formatting rules.

Fix Formatting

Terminal
bun format:fix

Automatically fixes code formatting issues.

Detect Unused Dependencies

Terminal
bun check:unused

Identifies unused dependencies in package.json.

Check Unused Exports

Terminal
bun check:files

Detects unused exports across the codebase.

Usage Examples

Run any script using Bun:

Terminal
bun <script-name>

Common Examples

Start Development Server

bash bun dev

Run Database Migrations

bash bun db:migrate

Fix Code Formatting

bash bun format:fix

Script Reference Table

CategoryScriptDescription
Developmentbun devStart development server
bun buildCreate production build
bun startStart production server
bun lintCheck code quality
Databasebun db:generateGenerate migrations
bun db:migrateRun migrations
bun db:pushPush schema changes
bun db:seedSeed database
bun db:setupSetup database
bun db:studioOpen database UI
bun db:dropDrop all tables
Code Qualitybun formatCheck formatting
bun format:fixFix formatting
bun check:unusedCheck unused dependencies
bun check:filesCheck unused exports