Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sh4yy/tiny-stack
A simple and tiny stack for building web applications using Astro, SQLite, and Litestream.
https://github.com/sh4yy/tiny-stack
astro drizzle litestream sqlite3 web
Last synced: about 14 hours ago
JSON representation
A simple and tiny stack for building web applications using Astro, SQLite, and Litestream.
- Host: GitHub
- URL: https://github.com/sh4yy/tiny-stack
- Owner: Sh4yy
- License: mit
- Created: 2023-12-30T20:13:42.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-03T08:05:04.000Z (9 months ago)
- Last Synced: 2024-10-10T09:05:15.368Z (about 1 month ago)
- Topics: astro, drizzle, litestream, sqlite3, web
- Language: Astro
- Homepage: https://logsnag.com/blog/the-tiny-stack
- Size: 197 KB
- Stars: 213
- Watchers: 3
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tiny Stack
![thumbnail](https://github.com/Sh4yy/tiny-stack/assets/23535123/d33b50cd-ca17-4a39-9154-237442fc6c8a)
A simple and tiny stack for building web applications using [Astro](https://astro.build), [SQLite](https://www.sqlite.org/index.html), and [Litestream](https://litestream.io).
## Tutorial
[Here](https://logsnag.com/blog/the-tiny-stack) is a thorough tutorial on the Tiny Stack.
## Quick Start
1. Build the Docker image
```bash
docker build -t tiny-stack .
```2. Set environment variables
Copy/paste the contents of `.env.example` into a new `.env` file and fill in the values, then run:
```bash
source .env
```OR export individual variables:
```bash
export REPLICA_URL=https://.r2.cloudflarestorage.com
export LITESTREAM_ACCESS_KEY_ID=access_key_id
export LITESTREAM_SECRET_ACCESS_KEY=secret_access_key
```3. Run the Docker image
```bash
docker run \
-p 4321:4321 \
-e REPLICA_URL \
-e LITESTREAM_ACCESS_KEY_ID \
-e LITESTREAM_SECRET_ACCESS_KEY \
-v $(pwd)/data:/data \
tiny-stack
```The same command as a single line in case slashes are causing issues:
```bash
docker run -p 4321:4321 -e REPLICA_URL -e LITESTREAM_ACCESS_KEY_ID -e LITESTREAM_SECRET_ACCESS_KEY -v $(pwd)/data:/data tiny-stack
```4. Head to http://localhost:4321