Bedstack is a collection of bleeding-edge technologies to build modern web applications.
Including:
- B: Bun - Runtime + package manager, Biome - Code quality
- E: ElysiaJS - HTTP Framework
- D: Drizzle - ORM
This is a stripped version of Bedstack for rapid prototyping, with the same core design, but simplified. See our ARCHITECTURE.md for more details!
-
Install dependencies
bun install
-
Copy
.env.example
to.env
and fill in the valuescp .env.example .env
-
Start the database server
bun db:start
-
Push the database schema to the database
bun db:push
-
Start the development server
bun dev
-
(Optional) Start the database studio
bun db:studio
Run all tests:
bun run test # Not `bun test`!
Or run different test suites individually:
bun test:api # Run the API tests
bun test:unit # Run the unit tests
Tip
To create test-specific environment configuration, create a .env.test
file. You may use .env.test.example
as a template:
cp .env.test.example .env.test
See CONTRIBUTING.md for more information, including how to set up your development environment.