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
2014-09-06 23:58:10 -05:00
css Use webfonts 2012-12-18 15:55:30 +01:00
database News index should not be unique 2014-09-06 23:58:10 -05:00
img Add rss feed 2013-08-31 00:38:32 +02:00
js Simple stats page 2013-05-05 01:39:28 +02:00
storage Normalize includes 2014-08-30 13:17:50 -05:00
templates Refactor templates to make take care of fmt 2014-08-30 01:25:16 -05:00
.gitignore Add store migration tool to extract files from the database 2014-08-23 01:55:27 -05:00
admin.go Don't try to delte empty ids 2014-09-06 23:58:10 -05:00
config.go Move files to a local folder 2014-08-21 19:57:38 -05:00
cover.go Normalize includes 2014-08-30 13:17:50 -05:00
LICENSE Move templates 2012-08-15 15:11:52 +02:00
logger.xml Add logger config 2014-02-11 12:59:58 +01:00
news.go Refactor templates to make take care of fmt 2014-08-30 01:25:16 -05:00
reader.go Normalize includes 2014-08-30 13:17:50 -05:00
README Use gopkg.in/mgo.v2 package 2014-08-18 19:27:53 -05:00
search.go Refactor templates to make take care of fmt 2014-08-30 01:25:16 -05:00
session.go Normalize includes 2014-08-30 13:17:50 -05:00
stats.go Normalize includes 2014-08-30 13:17:50 -05:00
tasker.go Normalize includes 2014-08-30 13:17:50 -05:00
template.go Give more info on the search json 2014-08-30 18:22:48 -05:00
trantor.go Normalize includes 2014-08-30 13:17:50 -05:00
upload.go Normalize includes 2014-08-30 13:17:50 -05:00
user.go Normalize includes 2014-08-30 13:17:50 -05: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
* Mongodb
* Bazaar
* Git

Under Debian Wheezy you can simply run:

# aptitude install golang-go git mercurial bzr mongodb

Yo also need to install go dependences:

# go get gopkg.in/mgo.v2 gopkg.in/mgo.v2/bson github.com/gorilla/sessions \
         github.com/gorilla/securecookie github.com/gorilla/mux \
         github.com/nfnt/resize github.com/cihub/seelog \
         gopkgs.com/unidecode.v1 \
         code.google.com/p/go.crypto/scrypt

== 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/
- js/Chart.min.js
  From chart.js library: http://www.chartjs.org/
- 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