# send2ereader A self hostable service for sending ebooks to a Kobo or Kindle ereader through the built-in browser. ## How To Run ### On Your Host OS 1. Have Node.js 16 or 20 installed 2. Install this service's dependencies by running `$ npm install` 3. Install [Kepubify](https://github.com/pgaskin/kepubify), and have the kepubify executable in your PATH. 4. Install [KindleGen](http://web.archive.org/web/*/http://kindlegen.s3.amazonaws.com/kindlegen*), and have the kindlegen executable in your PATH. 5. Install [pdfCropMargins](https://github.com/abarker/pdfCropMargins), and have the pdfcropmargins executable in your PATH. 6. Start this service by running: `$ npm start` and access it on HTTP port 3001 ### Containerized 1. You need [Docker](https://www.docker.com/) and [docker-compose](https://docs.docker.com/compose/) installed 2. Clone this repo (you need Dockerfile, docker-compose.yaml and package.json in the same directory) ``` git clone https://github.com/daniel-j/send2ereader.git ``` 3. Build the image ``` docker compose build ``` 4. run container (-d to keep running in the background) ``` docker compose up -d ``` 5. Access the service on HTTP, default port 3001 (http://localhost:3001)