The Imperial Library of Trantor (also known as Galactic Library) is a repository management system of ebooks on ePub format.
This repository has been archived on 2025-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2013-04-23 21:08:52 +02:00
css Use webfonts 2012-12-18 15:55:30 +01:00
img Change the background to bright_squares 2012-12-18 15:36:54 +01:00
js Update bootstrap to version 2.2.2 2012-12-17 21:12:16 +01:00
templates Add a '/' to the end of store and delete urls 2013-04-16 03:32:12 +02:00
tools Dirty migration tool for gridfs 2013-04-23 11:13:55 +02:00
.gitignore Add togridfs to gitignore 2013-04-23 21:08:52 +02:00
admin.go Store statistics on mongodb 2013-04-22 23:28:00 +02:00
config.go Store statistics on mongodb 2013-04-22 23:28:00 +02:00
cover.go Store correctly the img names 2013-04-23 01:04:47 +02:00
database.go Store statistics on mongodb 2013-04-22 23:28:00 +02:00
LICENSE Move templates 2012-08-15 15:11:52 +02:00
reader.go Store statistics on mongodb 2013-04-22 23:28:00 +02:00
README Use gorilla/mux 2013-04-15 00:37:49 +02:00
search.go Store statistics on mongodb 2013-04-22 23:28:00 +02:00
session.go Store statistics on mongodb 2013-04-22 23:28:00 +02:00
stats.go Don't segfault while get filenames if there is no files on the form 2013-04-23 20:33:21 +02:00
store.go Use title as filename on gridfs 2013-04-16 02:33:40 +02:00
template.go Add settings page to allow users to change their password 2012-10-28 18:47:44 +01:00
trantor.go Store statistics on mongodb 2013-04-22 23:28:00 +02:00
upload.go Add the epub extension 2013-04-23 01:04:06 +02:00

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:

https://gitorious.org/trantor/

(We still in pre-beta fase)

== Dependences ==

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

* Go language
* Epub development library
* Mongodb
* 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 mongodb

Yo also need to install go dependences:

# go get labix.org/v2/mgo/bson labix.org/v2/mgo/ github.com/gorilla/sessions github.com/gorilla/securecookie github.com/gorilla/mux github.com/nfnt/resize

== Installation ==
=== For admins ("for developers" below) ===

Now you can install Trantor itself:

# go get git.gitorious.org/trantor/trantor.git

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/git.gitorious.org/trantor/trantor.git/templates/ templates
# ln -s /usr/lib/go/src/pkg/git.gitorious.org/trantor/trantor.git/css/ css
# ln -s /usr/lib/go/src/pkg/git.gitorious.org/trantor/trantor.git/js/ js
# ln -s /usr/lib/go/src/pkg/git.gitorious.org/trantor/trantor.git/img/ img

Now you can run it:
# /usr/lib/go/bin/trantor.git

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

=== For developers ===

Login to gitorius: https://gitorious.org/login
and clone your own Trantor: https://gitorious.org/trantor/trantor/clone

In your shell
$ git clone git://gitorious.org/~yourname/trantor/yournames-trantor.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:
$ ./yourname-trantor

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

== Bugs ==

Please, report bugs to zenow@tormail.org

== Patches ==
Make your enhacements and sent it by git:

$ git commit -m "comment"
$ git remote set-url --push origin git@gitorious.org:~yournames/trantor/alfinals-trantor.git
$ git push origin master
$ git push

Go to "merge-requests"
 https://gitorious.org/trantor/yournames-trantor/merge_requests/new


== Rights ==

All the matterial of this project is under WTFPL as described on the LICENSE 
file with the exception of:
- css/bootstrap.min.css css/bootstra-responsive.min.css js/bootstrap.min.js 
  img/glyphicons-halflings-white.png img/glyphicons-halflings.png
  From the bootstrap framework: http://twitter.github.com/bootstrap/
- js/jquery.js
  From jquery library: http://jquery.com/
- img/bright_squares.png
  From subtlepatterns: http://subtlepatterns.com/bright-squares/
- css/FredokaOne.ttf css/PTSerif.ttf
  From Google Web Fonts: http://www.google.com/webfonts