Skip to content

dayblox/bun

Repository files navigation

Bun starter

Key Features

Prerequisites

Getting Started

  1. Deploy on Railway or use this template

  2. Clone the repository

  3. Install dependencies

    bun i

    Optionally typecheck environment variables

    .env

    PORT=3000

    src/env.ts (docs)

    const env = t.Object({
      PORT: t.Numeric({ minimum: 1024, maximum: 65535 }),
    });

Usage

  • Development mode (debug)

    F5

  • Running tests (watch mode)

    bun test --watch
  • Production mode

    bun start