It may not be the BEST stack, but it is the BETH stack.
Also: typed-html, tailwind-css, drizzle, hyperscript and fly.io
twind: check out the twind branch
unocss: check out the unocss branch
really you can use whatever you like the most
File-based Routing: check out the elysia-autoroutes branch
VIEW THE LIVE DEMO AT the-beth-stack.fly.dev
EACH STEP IN THE TUTORIAL IS A BRANCH IN THIS REPO
-
Clone this repo
-
Install Bun
-
Run
bun install
to install dependencies -
Create a database with Turso and add the connection url and token to a
.env
file in the root of this project -
Run
bun run db:push
to push the database schema to your database -
Run
bun run dev
to start the dev server
-
Install the Fly CLI
-
Run
fly launch
-
Run
fly secrets set DATABASE_URL=<your url>
&fly secrets set DATABASE_AUTH_TOKEN=<your token>
-
Generate the tailwind css file with
bun run tw
-
Run
fly deploy