Tip
β‘ New! We've created a stripped version of Bedstack, with only the essential features for rapid prototyping. Check it out: Bedstack (Stripped)
β‘ New! We've added support for Drizzle v1 Beta in Bedstack (Stripped). Check it out: drizzle-v1
in Bedstack (Stripped)
-
Clone and install dependencies
gh repo clone bedtime-coders/bedstack cd bedstack bun i
-
Create a
.env
filecp .env.example .env
Use the provided example values or replace them with your own.
-
Ensure Docker daemon is running and start the database service
bun db:start
-
Migrate the schema to the database
bun db:migrate
-
Run the development server
bun dev
-
Run the API tests
bun run test # not `bun test`!
-
(Optional) Start the database studio
bun db:studio
Tip
See more info in ElysiaJS's Building for production guide.
-
Build the app
bun run build # not `bun build`!
-
Run the server
bun preview
See Developer's Guide.