2012-10-13 01:33:32 +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.
|
|
|
|
|
2015-04-21 21:32:01 -04:00
|
|
|
You can check out the main development branch from GitLab at:
|
2012-10-13 01:33:32 +02:00
|
|
|
|
2015-04-21 21:32:01 -04:00
|
|
|
https://gitlab.com/trantor/
|
2012-10-13 01:33:32 +02:00
|
|
|
|
|
|
|
(We still in pre-beta fase)
|
|
|
|
|
|
|
|
== Dependences ==
|
|
|
|
|
|
|
|
In order to run Trantor, you need to install the following packages:
|
|
|
|
|
|
|
|
* Go language
|
2014-10-26 12:12:27 -06:00
|
|
|
* Mongodb (>= 2.6)
|
2012-10-13 01:33:32 +02:00
|
|
|
* Bazaar
|
2014-02-18 19:05:48 +01:00
|
|
|
* Git
|
2012-10-13 01:33:32 +02:00
|
|
|
|
|
|
|
Under Debian Wheezy you can simply run:
|
|
|
|
|
2013-04-12 01:07:40 +02:00
|
|
|
# aptitude install golang-go git mercurial bzr mongodb
|
2012-10-13 01:33:32 +02:00
|
|
|
|
|
|
|
Yo also need to install go dependences:
|
|
|
|
|
2014-08-18 19:27:53 -05:00
|
|
|
# go get gopkg.in/mgo.v2 gopkg.in/mgo.v2/bson github.com/gorilla/sessions \
|
2014-02-11 11:20:38 +01:00
|
|
|
github.com/gorilla/securecookie github.com/gorilla/mux \
|
2014-06-29 22:49:50 -05:00
|
|
|
github.com/nfnt/resize github.com/cihub/seelog \
|
2015-01-22 23:02:00 -06:00
|
|
|
code.google.com/p/go.crypto/scrypt \
|
|
|
|
github.com/rainycape/cld2
|
2012-10-13 01:33:32 +02:00
|
|
|
|
|
|
|
== Installation ==
|
|
|
|
=== For admins ("for developers" below) ===
|
|
|
|
|
|
|
|
Now you can install Trantor itself:
|
|
|
|
|
2015-04-21 21:32:01 -04:00
|
|
|
# go get -tags prod gitlab.com/trantor/trantor
|
2012-10-13 01:33:32 +02:00
|
|
|
|
|
|
|
You can run trantor in /srv/www/trantor i.e. For this:
|
|
|
|
|
|
|
|
# mkdir -p /srv/www/trantor
|
|
|
|
|
|
|
|
# cd /srv/www/trantor
|
|
|
|
|
2015-04-21 21:32:01 -04:00
|
|
|
# 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
|
2012-10-13 01:33:32 +02:00
|
|
|
|
|
|
|
Now you can run it:
|
2015-04-21 21:32:01 -04:00
|
|
|
# $GOPATH/bin/trantor
|
2012-10-13 01:33:32 +02:00
|
|
|
|
|
|
|
Go to your browser to: http://localhost:8080
|
|
|
|
|
|
|
|
=== For developers ===
|
|
|
|
|
2015-04-21 21:32:01 -04:00
|
|
|
Edit config.go if you want to change the port and other configuration, by default is 8080
|
2012-10-13 01:33:32 +02:00
|
|
|
|
|
|
|
Now you can compile Trantor:
|
2015-01-22 23:02:00 -06:00
|
|
|
$ go build -tags prod
|
|
|
|
(remove '-tags prod' for a faster compilation without language guessing)
|
2012-10-13 01:33:32 +02:00
|
|
|
|
|
|
|
Now you can run it:
|
2015-04-21 21:32:01 -04:00
|
|
|
$ ./trantor
|
2012-10-13 01:33:32 +02:00
|
|
|
|
|
|
|
Go to your browser to: http://localhost:8080
|
|
|
|
|
|
|
|
== Bugs ==
|
|
|
|
|
2015-04-21 21:32:01 -04:00
|
|
|
Please, report bugs in the gitlab issue tracker:
|
|
|
|
https://gitlab.com/trantor/trantor/issues
|
2012-12-17 22:06:21 +01:00
|
|
|
|
|
|
|
== 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/
|
2013-05-05 01:39:28 +02:00
|
|
|
- js/Chart.min.js
|
|
|
|
From chart.js library: http://www.chartjs.org/
|
2012-12-18 15:36:54 +01:00
|
|
|
- img/bright_squares.png
|
|
|
|
From subtlepatterns: http://subtlepatterns.com/bright-squares/
|
2012-12-18 15:55:30 +01:00
|
|
|
- css/FredokaOne.ttf css/PTSerif.ttf
|
|
|
|
From Google Web Fonts: http://www.google.com/webfonts
|