···11# boombox
2233+Music streaming server built with Bun, Elysia, and Effect.
44+55+## Development
66+37To install dependencies:
4859```bash
610bun install
711```
81299-To run:
1313+To run locally:
10141115```bash
1616+# Set required environment variables
1717+export DB_URL=./data/boombox.db
1818+export FOLDER_PATH=/path/to/your/music
1919+1220bun run src/index.ts
1321```
2222+2323+## Docker Deployment
2424+2525+### Using Docker Run
2626+2727+Build the image:
2828+2929+```bash
3030+docker build -t boombox-backend .
3131+```
3232+3333+Run the container:
3434+3535+```bash
3636+docker run -d \
3737+ --name boombox \
3838+ -p 3000:3000 \
3939+ -v /path/to/your/music:/app/music:ro \
4040+ -v boombox-data:/app/data \
4141+ boombox-backend
4242+```
4343+4444+### Using Docker Compose
4545+4646+1. Edit `docker-compose.yml` and update the music library path:
4747+4848+```yaml
4949+volumes:
5050+ - /path/to/your/music:/app/music:ro # Update this path
5151+```
5252+5353+2. Start the service:
5454+5555+```bash
5656+docker compose up -d
5757+```
5858+5959+### Required Volumes
6060+6161+- **Music Library** (`/app/music`): Mount your music folder here (read-only recommended)
6262+- **Database** (`/app/data`): Persistent storage for the SQLite database
6363+6464+### Environment Variables
6565+6666+- `DB_URL`: Path to SQLite database file (default: `/app/data/boombox.db`)
6767+- `FOLDER_PATH`: Path to music library folder (default: `/app/music`)
14681569This project was created using `bun init` in bun v1.2.2. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.