@@ -27,39 +27,88 @@ BookGrab focuses on doing one thing well: making it easy to search MAM and downl
2727
2828### Prerequisites
2929
30- - Node.js 18+ and npm
3130- A MyAnonyMouse account and session token
3231- A running Transmission client
3332
34- ### Environment Variables
33+ ### Installation Options
3534
36- Create a ` .env.local ` file in the root directory with the following variables:
35+ #### Option 1: Docker Compose (Recommended)
3736
37+ 1 . Create a ` docker-compose.yml ` file:
38+
39+ ``` yaml
40+ version : ' 3'
41+
42+ services :
43+ bookgrab :
44+ image : mrorbitman/bookgrab:latest
45+ container_name : bookgrab
46+ ports :
47+ - " 3000:3000"
48+ environment :
49+ - MAM_TOKEN=your_mam_token_here
50+ - TRANSMISSION_URL=http://your-transmission-server:9091/transmission/rpc
51+ - AUDIOBOOK_DESTINATION_PATH=/path/to/audiobooks
52+ - EBOOK_DESTINATION_PATH=/path/to/ebooks
53+ restart : unless-stopped
3854` ` `
39- MAM_TOKEN=your_mam_token_here
40- TRANSMISSION_URL=http://your-transmission-server:9091/transmission/rpc
41- AUDIOBOOK_DESTINATION_PATH=/path/to/audiobooks
42- EBOOK_DESTINATION_PATH=/path/to/ebooks
55+
56+ 2. Update the environment variables with your own values
57+ 3. Run the container:
58+
59+ ` ` ` bash
60+ docker-compose up -d
4361```
4462
45- ### Installation
63+ 4 . Access BookGrab at http://localhost:3000
64+
65+ #### Option 2: Docker
4666
47- 1 . Clone the repository
48- 2 . Install dependencies:
67+ Run the container directly:
68+
69+ ``` bash
70+ docker run -d \
71+ --name bookgrab \
72+ -p 3000:3000 \
73+ -e MAM_TOKEN=your_mam_token_here \
74+ -e TRANSMISSION_URL=http://your-transmission-server:9091/transmission/rpc \
75+ -e AUDIOBOOK_DESTINATION_PATH=/path/to/audiobooks \
76+ -e EBOOK_DESTINATION_PATH=/path/to/ebooks \
77+ mrorbitman/bookgrab:latest
78+ ```
79+
80+ #### Option 3: Manual Installation
81+
82+ 1 . Prerequisites:
83+ - Node.js 18+ and npm
84+
85+ 2 . Clone the repository
86+ 3 . Install dependencies:
4987
5088``` bash
5189npm install
5290```
5391
54- 3 . Run the development server:
92+ 4 . Create a ` .env.local ` file in the root directory with the following variables:
93+
94+ ```
95+ MAM_TOKEN=your_mam_token_here
96+ TRANSMISSION_URL=http://your-transmission-server:9091/transmission/rpc
97+ AUDIOBOOK_DESTINATION_PATH=/path/to/audiobooks
98+ EBOOK_DESTINATION_PATH=/path/to/ebooks
99+ ```
100+
101+ 5 . Run the development server:
55102
56103``` bash
57104npm run dev
58105```
59106
60- 4 . Open [ http://localhost:3000 ] ( http://localhost:3000 ) with your browser to see the application.
107+ 6 . Open [ http://localhost:3000 ] ( http://localhost:3000 ) with your browser to see the application.
108+
109+ ### Building for Production
61110
62- ## Building for Production
111+ If you're installing manually, you can build for production:
63112
64113``` bash
65114npm run build
0 commit comments