apps/library/README.md 1.3 K raw
1
# library
2
3
Personal book tracker with Google Books search.
4
5
## Install
6
7
**Homebrew:**
8
9
```bash
10
brew install stevedylandev/tap/library
11
```
12
13
**Curl install (Linux/macOS):**
14
15
```bash
16
curl -fsSL https://raw.githubusercontent.com/stevedylandev/andromeda/main/install.sh | sh -s -- library
17
```
18
19
**PowerShell (Windows):**
20
21
```powershell
22
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/stevedylandev/andromeda/main/install.ps1))) library
23
```
24
25
**Prebuilt binary:** Grab the right archive from the [releases page](https://github.com/stevedylandev/andromeda/releases?q=library%2F) and drop the binary somewhere on your `$PATH`.
26
27
**From source:**
28
29
```bash
30
git clone https://github.com/stevedylandev/andromeda
31
cd andromeda/apps/library
32
go build .
33
```
34
35
## Quickstart
36
37
```bash
38
cp .env.example .env
39
go run .
40
```
41
42
### Environment Variables
43
44
| Variable | Default | Description |
45
|---|---|---|
46
| `ADMIN_PASSWORD` | `changeme` | Admin login password |
47
| `LIBRARY_DB_PATH` | `library.sqlite` | SQLite path |
48
| `GOOGLE_BOOKS_API_KEY` | — | Optional Google Books API key |
49
| `BASE_URL` | `http://localhost:3000` | Public base URL (OG tags) |
50
| `HOST` | `0.0.0.0` | Bind host |
51
| `PORT` | `3000` | Server port |
52
| `COOKIE_SECURE` | `false` | Mark session cookie Secure |
53
| `LIBRARY_DISPLAY_MODE` | `inline` | `inline` or `nav` |