Commit graph

77 commits

Author SHA1 Message Date
Las Zenow
12b787e31f Add logger config 2014-02-11 12:59:58 +01:00
Las Zenow
275c7f745f Log the panic messages 2014-02-11 11:29:15 +01:00
Las Zenow
bbbd35e928 Use seelog instead of the default log pkg 2014-02-11 11:20:38 +01:00
Las Zenow
4130e43689 Update the mapreduce collections in background 2014-02-09 23:22:45 +01:00
Las Zenow
9af72ea1b4 Rename setUpRouter to initRouter 2014-02-09 18:38:43 +01:00
Las Zenow
41b376992a Database stops being a global variable
With it now every handler creates it's own copy of the session.
2013-09-23 16:27:31 +02:00
Las Zenow
5d522da0d2 Merge branch 'master' into user
Conflicts:
	database.go
2013-07-19 00:24:26 +02:00
Las Zenow
54763b04df Print out the news in the front page 2013-07-18 11:42:46 +02:00
Las Zenow
5f612a36ad Simple news implementation
Is missing some proper design and to show up the news on the front page.
2013-07-17 01:08:44 +02:00
Las Zenow
cfdd4817e2 Add user roles 2013-06-01 20:54:39 +02:00
Las Zenow
e72fd6e4d4 Pass the session to the 404 page 2013-06-01 20:51:21 +02:00
Las Zenow
3da8cae762 Get the visited and downloaded books from the stadistics 2013-06-01 05:48:15 +02:00
Las Zenow
a6c8355a50 Add help page 2013-06-01 04:56:35 +02:00
Las Zenow
cb856b002f Merge branch 'master' into stats 2013-05-31 01:12:23 +02:00
Las Zenow
424a0fad8e Allow multiline descriptions 2013-05-31 00:34:11 +02:00
Las Zenow
68254d359c Merge branch 'master' into stats 2013-05-28 01:44:56 +02:00
Las Zenow
41258ee863 Check if the ObjectIds are valid. 2013-05-09 09:42:58 +02:00
Las Zenow
d0f6b83423 Add a 404 page 2013-05-09 09:42:03 +02:00
Las Zenow
0c0fc5d797 Simple stats page 2013-05-05 01:39:28 +02:00
Las Zenow
137357cd12 Upload files on a separate goroutine 2013-05-03 00:43:26 +02:00
Las Zenow
206775fa6a Store statistics on mongodb 2013-04-22 23:28:00 +02:00
Las Zenow
c4373c8773 Separate router initialization into it's own function 2013-04-16 13:39:22 +02:00
Las Zenow
58447a19cb Split the reader handlers 2013-04-16 03:28:38 +02:00
Las Zenow
d8bfcb2ef2 Split post and get handlers for upload 2013-04-16 02:34:15 +02:00
Las Zenow
5d2f72c229 Search pattern was boggus 2013-04-15 23:53:10 +02:00
Las Zenow
fb9376ab43 The download path now is '/download/id/epub' 2013-04-15 22:29:57 +02:00
Las Zenow
986f834f46 Put the covers on the database 2013-04-15 22:10:48 +02:00
Las Zenow
402dbabdbd Use gorilla/mux patterns 2013-04-15 00:59:19 +02:00
Las Zenow
3a99f86f32 Use gorilla/mux 2013-04-15 00:37:49 +02:00
Las Zenow
98d5074eff error variable don't need to be defined 2013-04-13 21:46:40 +02:00
Las Zenow
49f824802b Remove dependencies from new/ foder 2013-04-12 01:44:00 +02:00
Las Zenow
05b641201c Store files on GridFS 2013-04-12 01:05:40 +02:00
Las Zenow
a574a38ccc Cache the tags on the database 2013-03-20 00:54:40 +01:00
Las Zenow
5abab5f5dd Add logs 2012-10-29 21:53:04 +01:00
Las Zenow
ba13a69f4a Use http.StatusFound so the forms don't get redirected 2012-10-29 21:52:02 +01:00
Las Zenow
857dc5f57c Use http.StatusTemporaryRedirect instead of hardcoded 307 2012-10-29 21:43:55 +01:00
Las Zenow
038cac6a62 The /books/ handler now use the BOOKS_PATH constant 2012-10-29 20:59:41 +01:00
Las Zenow
34b48f411c Use config paths to serve files 2012-10-28 19:21:42 +01:00
Las Zenow
15bebb7677 Add settings page to allow users to change their password 2012-10-28 18:47:44 +01:00
Las Zenow
53150466a6 go fmt 2012-10-26 13:44:08 +02:00
Las Zenow
cd9b518284 Displaying most viewed and downloaded books on the front page 2012-10-24 23:22:39 +02:00
Las Zenow
b96215b7ff Generate stats from visits and downloads 2012-09-13 01:03:07 +02:00
Las Zenow
840fd3ed47 New database squema
The collection new is removed, now the books have a field "active" set to true
if the book was aproved.

For update the database:
db.books.update({}, {$set: {active: true}}, true, true)
2012-09-12 00:19:19 +02:00
Las Zenow
a9749e7136 Display the number of results on new page 2012-09-09 22:42:03 +02:00
Las Zenow
7a35b283b5 Don't need ':' for port configuration 2012-08-31 01:00:08 +02:00
Las Zenow
fbed1ab5ab Panic if the http server fails 2012-08-31 00:36:41 +02:00
Las Zenow
90d401e98e Make the port configurable 2012-08-31 00:35:39 +02:00
Las Zenow
ade035eb00 Create new, cover and books if don't exists 2012-08-31 00:32:00 +02:00
Las Zenow
45b2d47bd5 Using iframes for reading books 2012-08-30 20:49:58 +02:00
Las Zenow
ea906a7681 Search was not scrolling fine 2012-08-24 20:18:16 +02:00