https://github.com/webreflection/fly-bun-sqlite
Fly.io with Bun and SQLite.
https://github.com/webreflection/fly-bun-sqlite
Last synced: over 1 year ago
JSON representation
Fly.io with Bun and SQLite.
- Host: GitHub
- URL: https://github.com/webreflection/fly-bun-sqlite
- Owner: WebReflection
- Created: 2024-02-14T12:52:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-14T14:16:11.000Z (over 2 years ago)
- Last Synced: 2025-03-27T14:11:23.824Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 25
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fly.io -> Bun + SQLite
**Social Media Photo by [Annie Ruygt](https://annieruygtillustration.com/) on [fly.io](https://fly.io/blog/flydotio-heart-bun/)**
This project uses [Bun](https://bun.sh), a fast all-in-one JavaScript runtime.
To install dependencies:
```bash
bun install
```
To run:
```bash
bun index.js
```
## Deploy with fly
```sh
# 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](https://fly-bun-sqlite.fly.dev/)**