https://github.com/atomotic/go-bookreaderd
internet archive bookreader in a standalone executable
https://github.com/atomotic/go-bookreaderd
Last synced: 2 months ago
JSON representation
internet archive bookreader in a standalone executable
- Host: GitHub
- URL: https://github.com/atomotic/go-bookreaderd
- Owner: atomotic
- Created: 2014-01-09T12:14:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-09T12:44:49.000Z (over 11 years ago)
- Last Synced: 2025-01-05T02:24:59.076Z (4 months ago)
- Language: JavaScript
- Size: 1.64 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# go-bookreaderd
**internet archive bookreader** in a standalone server, built in **Go**
static assets from [BookReader](https://github.com/openlibrary/bookreader/tree/master/BookReader) are self-contained into the binary with [nrsc](http://bitbucket.org/tebeka/nrsc)## setup
### install required packages
go get bitbucket.org/tebeka/nrsc
go get bitbucket.org/tebeka/nrsc/nrsc
go get github.com/codegangsta/martini
### compilego build bookreaderd.go
nrsc bookreaderd assets
### run./bookreaderd
open http://localhost:8088/book/example## publish books
put in ```books/{DIRECTORY}``` a bunch of jpg files in the form ```page00n.jpg```
and open ```http://localhost:8088/book/{DIRECTORY}```
## todo
- use html/template to render index and not fmt.Sprintf
- automatic index at / with list of available books
- automatic generation of ```br.numLeafs = ;```
- serve jpg in .zip containers, as internetarchive (maybe with automatic [jp2->jpg](https://github.com/openlibrary/bookreader/blob/master/BookReaderIA/datanode/BookReaderImages.inc.php))## credits
```func nrscStatic()``` is inspired by [syncthing](https://github.com/calmh/syncthing/blob/master/gui.go#L103)## License
* CC0