Getting Started
Getting Started with Dex
Welcome! Dex is a composable, Bun-first full-stack framework featuring a Native Go CLI (dex) (<8 MB binary, <5ms startup), file-based React routing, Elysia server helpers, SSG prerendering, and a typed OpenAPI route-tree client (@dex/pie).
What You'll Learn
- What Dex is and how its composable packages fit together
- How to install the native Go CLI and scaffold your first app
- How to develop locally, generate typed API clients, and build a standalone Bun server executable
Prerequisites
- Bun installed (
bun --version) for running the app runtime, bundler, and tests
Installation
Install the native Go dex CLI on your system:
Linux / macOS
curl -fsSL https://raw.githubusercontent.com/patrickaigbogun/dex/master/install.sh | bashWindows (PowerShell)
irm https://raw.githubusercontent.com/patrickaigbogun/dex/master/install.ps1 | iexThe installer places versioned binaries under ~/.dex/versions/<version>/dex, links the active shim at ~/.dex/bin/dex, and keeps ~/.local/bin/dex linked when present. To update or switch CLI versions at any time:
dex update
dex versions
dex use v0.2.6Quick Start
# Scaffold a new Dex project
dex scaffold my-app
# Enter the project directory
cd my-app
# Start the dev server
dex startYour app will be running at http://localhost:7990.
Next Steps
- What is Dex? — Understand the philosophy and 5-pillar architecture
- Your First App — Step-by-step tutorial building a real app
- How Dex Works — Mental model for routing, layouts, SSG, and builds