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
Las Zenow b178df89b0 Check if the lang is supported by mongo
If an unsoported lang is setted in the language override the document
will fail on inserting in the database, causing it to be lost.
2015-04-27 20:54:41 -04:00
css Use webfonts 2012-12-18 15:55:30 +01:00
database Check if the lang is supported by mongo 2015-04-27 20:54:41 -04: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
parser Add isbn parser 2015-04-21 21:57:28 -04:00
storage Use io.readerAt to open the books without loading everything in memory 2015-01-22 21:16:20 -06:00
templates Move to gitlab 2015-04-21 21:32:01 -04:00
.gitignore Tools are not in the repo anymore, remove them from gitignore 2015-04-27 20:33:28 -04:00
admin.go Move to gitlab 2015-04-21 21:32:01 -04:00
config.go Basic OPDS support 2015-01-17 09:58:21 -06:00
cover.go Move to gitlab 2015-04-21 21:32:01 -04:00
description.json Add description.json following the ahmia proposal 2014-09-14 00:54:52 -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 Move to gitlab 2015-04-21 21:32:01 -04:00
opensearch.xml Basic OPDS support 2015-01-17 09:58:21 -06:00
reader.go Move to gitlab 2015-04-21 21:32:01 -04:00
README Refactor the epub parser to it's own module 2015-04-21 21:55:18 -04:00
robots.txt Add bad quality flag 2014-09-07 20:25:11 -05:00
search.go Move to gitlab 2015-04-21 21:32:01 -04:00
session.go Move to gitlab 2015-04-21 21:32:01 -04:00
stats.go Move to gitlab 2015-04-21 21:32:01 -04:00
tasker.go Move to gitlab 2015-04-21 21:32:01 -04:00
template.go Move to gitlab 2015-04-21 21:32:01 -04:00
trantor.go Move to gitlab 2015-04-21 21:32:01 -04:00
upload.go Refactor the epub parser to it's own module 2015-04-21 21:55:18 -04: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 GitLab at:

https://gitlab.com/trantor/

(We still in pre-beta fase)

== Dependences ==

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

* Go language
* Mongodb (>= 2.6)
* 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 \
         code.google.com/p/go.crypto/scrypt \
         github.com/rainycape/cld2

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

Now you can install Trantor itself:

# go get gitlab.com/trantor/trantor

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

# mkdir -p /srv/www/trantor

# cd /srv/www/trantor

# ln -s $GOPATH/src/pkg/gitlab.com/trantor/trantor/templates/ templates
# ln -s $GOPATH/src/pkg/gitlab.com/trantor/trantor/css/ css
# ln -s $GOPATH/src/pkg/gitlab.com/trantor/trantor/js/ js
# ln -s $GOPATH/src/pkg/gitlab.com/trantor/trantor/img/ img

Now you can run it:
# $GOPATH/bin/trantor

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

=== For developers ===

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:
$ ./trantor

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

== Bugs ==

Please, report bugs in the gitlab issue tracker:
https://gitlab.com/trantor/trantor/issues

== 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