Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

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

Notifications You must be signed in to change notification settings

arjunindia/the-beth-stack

 
 

Repository files navigation

This was meant to be a simple template based off of Ethan's TODO App, but now that https://github.com/ethanniser/the-beth-stack has been upgraded with a new architecture and even cli we can consider it a better bet.


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

ADDITIONAL STYLING OPTIONS:

twind: check out the twind branch

unocss: check out the unocss branch

really you can use whatever you like the most

ADDITIONAL STYLING OPTIONS:

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

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 78.3%
  • Dockerfile 14.3%
  • JavaScript 6.3%
  • CSS 1.1%