Skip to content

ebook-web is a CLI tool to read epub, mobi, azw3 and txt format ebook easily in your browser

License

Notifications You must be signed in to change notification settings

seasona/ebook-web

Repository files navigation

ebook-web

Build Status License

ebook-web is a CLI tool to read epub, mobi, azw3 and txt format ebook easily in your browser

Table of Contents

About The Project

demo

Feature

  • parse and read epub format ebook
  • parse and read mobi, azw3 format ebook
  • parse and read txt format ebook
  • support create charpter directory of all format ebook
  • maintain your local ebook shelf

Platform

linux

Built With

g++ 7.5.0 and higher

cmake 3.11 and higher

Getting Started

Prerequisites

ebook-web is depend on zlib, minizip and libxml2, you can choose to build them through sourse code from the ebook-web or use the system lib installed locally

sudo apt-get install -y zlib1g-dev libxml2-dev libminizip-dev

Installation

cd ebook-web/
mkdir -p build && cd build
cmake ../ -DUSE_SYSTEM_LIBS=ON  
make 

The unit test option is JEBOOK_SERVER_TEST, if you want to run test, use:

- cmake ../ -DUSE_SYSTEM_LIBS=ON -DJEBOOK_SERVER_TEST=ON 
- make -j$(nproc) 
- make test

Usage

Ebook reading CLI tool
Usage:
  ./Jebook_server [OPTION...]

  -i, --ip arg         IP address (default: localhost)
  -p, --port arg       Port (default: 8089)
  -d, --directory arg  Ebook output directory (default: ./)
  -t, --template arg   Web template location (default:
                       ../../web/template.html)
  -b, --book arg       Ebook location
      --help           Print help

Generally, you can use ebook-web simply by:

./Jebook_server -b my_book

then open your browser and enter http://localhost:8089/. You can enjoy reading your ebook now!

License

Distributed under the MIT License. See LICENSE for more information.

About

ebook-web is a CLI tool to read epub, mobi, azw3 and txt format ebook easily in your browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published