Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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/)**