8000 GitHub - dayblox/bun: Bun starter
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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 = z.object({
      PORT: z.coerce.number().positive().max(65535).default(3000),
    });

Usage

  • Development mode

    bun dev
  • Development debug mode (VSCode)

    F5

  • Running tests (watch mode)

    bun test --watch
  • Production mode

    bun start
0