Simple Ebook Converter API for E-books. Used for different ebook format converting to epub file.
-
Make sure you install Calibre app in your machine. Just go to this link: https://calibre-ebook.com/download
-
Don't forget to locate the installation path for Calibre and paste to .env file "CALIBRE_LIB_PATH". For example in windows:
C://Program Files//Calibre2//ebook-convert.exe
-
AWS Account for S3 Storage and generate access key id and secret key
- copy env.local as .env
- install dependencies and dev dependencies
npm install
- run as development
npm run dev
- run build for production
npm run build
- run in server production
npm start
- code format
npm run format
- use postman to test endpoint
POST http://localhost:5000/convert
Body:
- form-data
- file (tested only in PDF but this will accept any format)