Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
/ bedstack Public

Bun + ElysiaJS + Drizzle = the stack you don't want to sleep on πŸ›ŒπŸ’€

License

Notifications You must be signed in to change notification settings

agnyz/bedstack

Repository files navigation

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.