Skip to content

Latest commit

 

History

History
75 lines (48 loc) · 2.25 KB

README.md

File metadata and controls

75 lines (48 loc) · 2.25 KB
Logo for Bedstack RealWorld example

Bedstack

RealWorld example app for Bun + ElysiaJS + Drizzle

Tests Status RealWorld Bed Puns GitHub License CodeRabbit Pull Request Reviews

Visit https://bedstack.js.org to learn more about the stack you don't want to sleep on 🛌💤

Let's share a BED - join our Discord server

Quickstart

  1. Clone and install dependencies

    gh repo clone agnyz/bedstack
    cd bedstack
    bun i
  2. Create a .env file

    cp .env.example .env

    Use the provided example values or replace them with your own.

  3. Ensure Docker daemon is running and spin up the Postgres container

    bun db
  4. Migrate the schema to the database

    bun db:migrate
  5. Run the development server

    bun dev
  6. Run the API tests

    bun run test # not `bun test`!

Building for production

Tip

See more info in ElysiaJS's Building for production guide.

  1. Build the app

    bun run build # not `bun build`!
  2. Run the server

    bun preview
    

Contributing

See Developer's Guide.