AlandSleman / the-beth-stack

A opinionated hypermedia-driven architecture balancing developer experience and performance.

Home Page:https://the-beth-stack.fly.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

THE BETH STACK

It may not be the BEST stack, but it is the BETH stack.

Also: typed-html, tailwind-css, drizzle, hyperscript and fly.io

VIEW THE LIVE DEMO AT the-beth-stack.fly.dev

EACH STEP IN THE TUTORIAL IS A BRANCH IN THIS REPO

SO YOU CAN SEE THE CODE AT EACH STEP

TO RUN LOCALLY

  1. Clone this repo

  2. Install Bun

  3. Run bun install to install dependencies

  4. Create a database with Turso and add the connection url and token to a .env file in the root of this project

  5. Run bun run db:push to push the database schema to your database

  6. Run bun run dev to start the dev server

TO DEPLOY TO FLY

  1. Install the Fly CLI

  2. Run fly launch

  3. Run fly secrets set DATABASE_URL=<your url> & fly secrets set DATABASE_AUTH_TOKEN=<your token>

  4. Generate the tailwind css file with bun run tw

  5. Run fly deploy

About

A opinionated hypermedia-driven architecture balancing developer experience and performance.

https://the-beth-stack.fly.dev/


Languages

Language:TypeScript 81.0%Language:Dockerfile 15.1%Language:JavaScript 2.8%Language:CSS 1.1%