bookshelf

command module
v0.0.0-...-07dc153 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 1 Imported by: 0

README

Bookshelf

Actions Status License Release

Blog post (Japanese)

Bookshelf is a simple ebook management web application. You can easily store and manage your books on a local or S3 compatible storage. This software also provides a OPDS feed which enables you to read your books via any OPDS readers on your computer or smartphone.

Screenshot_2020-09-22 bookshelf

Usage
$ go get github.com/altescy/bookshelf
$ export BOOKSHELF_DB_URL=sqlite3:///`pwd`/data/bookshelf.db
$ export BOOKSHELF_STORAGE_URL=file:///`pwd`/data/files
$ bookshelf
Docker
$ docker pull altescy/bookshelf
$ docker run -d \
    -v `pwd`/data:/data \
    -p 8080:8080 \
    -e BOOKSHELF_DB_URL=sqlite3:///data/bookshelf.db \
    -e BOOKSHELF_STORAGE_URL=file:///data/files \
    altescy/bookshelf
docker-compose
$ git clone https://github.com/altescy/bookshelf.git
$ cd bookshelf
$ cat << EOF > .env
BOOKSHELF_PORT=80
BOOKSHELF_ENABLE_CORS=
BOOKSHELF_DB_URL=postgres://user:password@postgres:5432/bookshelf?sslmode=disable
BOOKSHELF_STORAGE_URL=s3://books
BOOKSHELF_CREATE_NEW_STORAGE=1
BOOKSHELF_AWS_ACCESS_KEY_ID=minio_access
BOOKSHELF_AWS_SECRET_ACCESS_KEY=minio_secret
BOOKSHELF_AWS_S3_REGION=us-east-1
BOOKSHELF_AWS_S3_ENDPOINT_URL=http://minio

MINIO_ACCESS_KEY=minio_access
MINIO_SECRET_KEY=minio_secret
MINIO_HOST=0.0.0.0
MINIO_PORT=9000

POSTGRES_USER=user
POSTGRES_PASSWORD=password
POSTGRES_PORT=5432

TZ=Asia/Tokyo
EOF
$ docker-compose up -d

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package browser generated by go-bindata.// sources: dist/css/chunk-vendors.59feff65.css dist/favicon.ico dist/index.html dist/js/about.f9a14170.js dist/js/about.f9a14170.js.map dist/js/app.713c772c.js dist/js/app.713c772c.js.map dist/js/chunk-vendors.0d447f87.js dist/js/chunk-vendors.0d447f87.js.map
Package browser generated by go-bindata.// sources: dist/css/chunk-vendors.59feff65.css dist/favicon.ico dist/index.html dist/js/about.f9a14170.js dist/js/about.f9a14170.js.map dist/js/app.713c772c.js dist/js/app.713c772c.js.map dist/js/chunk-vendors.0d447f87.js dist/js/chunk-vendors.0d447f87.js.map

Jump to

Keyboard shortcuts

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