Skip to content

Getting Started

INFO

We are working on a dev container experience for The Bed Stack. It should make the onboarding process much easier. See progress in Developing in a Dev Container.

Getting started with this RealWorld project is as easy as installing a few prerequisites, running a few commands, and opening your favorite text editor. We'd love to have you contribute to this project. If you have any questions, please reach out on Discord or GitHub Discussions!

Installation

Prerequisites

  • Bun version 1.0.6 or higher.
  • Terminal for accessing Bun via its command-line interface (CLI).
  • Text Editor with TypeScript support.
    • We recommend Visual Studio Code; other IDEs have been reported to cause issues with ElysiaJS's type inference system.

Setup

  1. Clone and install dependencies
sh
$ gh repo clone agnyz/the-bed-stack
$ cd the-bed-stack
$ bun i
$ gh repo clone agnyz/the-bed-stack
$ cd the-bed-stack
$ bun i
  1. Ensure Docker daemon is running and spin up the Postgres+Bun container
sh
$ bun up
$ bun up
  1. Migrate the schema to the database
sh
$ bun db:migrate
$ bun db:migrate
  1. Run the app
sh
$ bun dev
$ bun dev

What's Next?