/fly-bun-sqlite

Fly.io with Bun and SQLite.

Primary LanguageJavaScript

Fly.io -> Bun + SQLite

Social Media Photo by Annie Ruygt on fly.io

This project uses Bun, a fast all-in-one JavaScript runtime.

To install dependencies:

bun install

To run:

bun index.js

Deploy with fly

# login via GitHub or Google or .. whatever
fly auth login

# be sure the region is correct and/or free to use
# be sure you use 1x CPU with 256MB machine for free tier
fly launch

# for free tier use just 1 volume
fly volume create litefs -r $REGION -n 1

# deploy this and have fun
fly deploy

Live Demo