From - English Wiki

< Trantor
Revision as of 02:07, 31 August 2012 by Al (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Imperial Library of Trantor

The Imperial Library of Trantor (also known as Galactic Library) is a repository management system of ebooks on ePub format.

You can check out the main development branch from Gitorious at:

(We still in pre-beta fase)


In order to run Trantor, you need to install the following packages:

  • Go language
  • Epub development library
  • Mongodb
  • Imagemagick (for resize covers)
  • Bazaar
  • Mercurial
  • Git (necessary only if you want to deal with the repository)

Under Debian Wheezy you can simply run:

aptitude install golang-go git mercurial bzr libepub-dev mongodb imagemagick

Yo also need to install go dependences:

go get


For admins ("for developers" below)

Now you can install Trantor itself:

go get

You can run trantor in /srv/www/trantor i.e. For this:

mkdir -p /srv/www/trantor
cd /srv/www/trantor
ln -s /usr/lib/go/src/pkg/ templates
ln -s /usr/lib/go/src/pkg/ css
ln -s /usr/lib/go/src/pkg/ js
ln -s /usr/lib/go/src/pkg/ img

Now you can run it:


Go to your browser to: http://localhost:8080

For developers

Login to gitorius: and clone your own Trantor:

In your shell

git clone git:// 
cd yournames-trantor

You can edit config.go if you want to change the port and other configuration, by default is 8080

Now you can compile Trantor:

go build

Now you can run it:


Go to your browser to: http://localhost:8080


Please, report bugs to


Make your enhacements and sent it by git:

git commit -m "comment"
git push

Go to "merge-requests"
Personal tools