Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/WebReflection/fly-bun-sqlite
Fly.io with Bun and SQLite.
https://github.com/WebReflection/fly-bun-sqlite
Last synced: 3 months 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 (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-14T14:16:11.000Z (9 months ago)
- Last Synced: 2024-06-22T16:46:11.442Z (5 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 16
- 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/)**