fb2lib

module
v1.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2022 License: MIT

README

fb2lib

Go Reference Go Report Card Coverage Pipeline

This is a server for indexing and searching fb2-books at zip archives.

Quick start:
  1. Put your archives with books into books folder

  2. Build books index:

docker run --rm -t --entrypoint=build_index \
  -v $(pwd)/cfg.yml:/configs/app.override.yml:ro \
  -v $(pwd)/books:/var/libs/default:ro \
  -v $(pwd)/index:/var/index:rw \
  -v $(pwd)/db:/var/db:rw \
  -v $(pwd)/logs:/var/logs:rw \
  egnd/fb2lib
  1. Build books summary:
docker run --rm -t --entrypoint=build_summary \
  -v $(pwd)/cfg.yml:/configs/app.override.yml:ro \
  -v $(pwd)/db:/var/db:rw \
  -v $(pwd)/logs:/var/logs:rw \
  egnd/fb2lib
  1. Create docker-compose.yml:
version: "3.8"
services:
  app:
    image: egnd/fb2lib
    ports:
      - 80:8080
    volumes:
      - ./cfg.yml:/configs/app.override.yml:ro
      - ./libs/default:/var/libs/default:ro
      - ./index:/var/index:rw
      - ./db:/var/db:rw
  1. Run server with:
docker-compose up
  1. Server is available at http://localhost
Hints:

Directories

Path Synopsis
cmd
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL