Commit Graph

135 Commits

Author SHA1 Message Date
konrad 547b44d608
goft 2018-01-16 14:06:09 +01:00
konrad a315f71144
Improved author unit test 2018-01-16 13:19:49 +01:00
konrad bd261ca375
Improved books unit test 2018-01-16 13:14:56 +01:00
konrad 64ae3244ed
Improved author unit test 2018-01-16 13:12:37 +01:00
konrad ac78d311a8
typo 2018-01-16 12:36:50 +01:00
konrad f00f473df5
Added unit tests for books 2018-01-16 12:34:08 +01:00
konrad 14651d198c
Improved Author unit tests 2018-01-16 12:27:14 +01:00
konrad ed38925489
Fixed lint + gofmt
the build failed Details
2018-01-16 11:55:12 +01:00
konrad d0202aea41
Added author tests 2018-01-16 11:53:27 +01:00
konrad aa6bc74405
Started adding unit tests
the build failed Details
2018-01-16 11:41:11 +01:00
konrad d2476e061f
comment 2018-01-15 13:12:26 +01:00
konrad 24ec279fd5
Fixed program exiting when user in config already existed 2017-12-19 12:02:01 +01:00
kolaente 0c80f55963
Message now all lowercase when returned as json
the build was successful Details
2017-12-07 10:45:33 +01:00
kolaente 22ee38f7b4
When no database or config is found the program exits
the build was successful Details
2017-12-05 16:06:40 +01:00
kolaente 48b309cd51
Implemented logging of user actions 2017-12-05 14:46:54 +01:00
kolaente 28b5231199
Fixed lint 2017-12-05 12:01:31 +01:00
kolaente 9e6ddafe7e
Added sqlite as database option
the build failed Details
2017-12-05 11:49:19 +01:00
kolaente 111ffe687d
Fixed active class not showing correctly 2017-12-05 10:17:16 +01:00
konrad a97216fbd1
gofmt 2017-12-01 12:38:36 +01:00
kolaente b0219e9052
Tested sqlite db 2017-12-01 11:33:40 +01:00
konrad 6496efd411
Improved performance when getting a list of all books
the build failed Details
2017-12-01 10:18:26 +01:00
konrad e485218688
Cleanup
the build failed Details
2017-11-30 15:48:03 +01:00
konrad c3d6032bcf
Book JSON is now all lowercase
the build failed Details
2017-11-29 16:43:58 +01:00
konrad 37a39cbae6
Publisher JSON is now all lowercase 2017-11-29 16:23:19 +01:00
konrad 6f22a1a671
Author JSON is now all lowercase 2017-11-29 16:15:29 +01:00
konrad 3d1a710ae0
Fixed: When updating a book, no title is needed
the build failed Details
2017-11-29 15:59:34 +01:00
konrad 7fba68f812
Optimized quantity handling 2017-11-29 15:53:11 +01:00
kolaente 3c08e18cd2
Added item managagement
the build was successful Details
+ Resolved quantity stuff - there now is a new table which links books or items to a quantity
2017-11-29 12:25:52 +01:00
kolaente b56465e996
Fixed a bug where a new quantity was inserted when it hasnt changed
the build was successful Details
2017-11-28 16:19:59 +01:00
kolaente 50b368320a
Added book description
the build failed Details
2017-11-28 16:03:25 +01:00
kolaente a658797b6d
Fix: No empty publisher is inserted when not selecting one while creating a new book 2017-11-28 12:27:00 +01:00
kolaente 82800240a2
Moved "Publisher" to "PublisherID" and "PublisherFull" to "Publisher" 2017-11-28 10:43:23 +01:00
konrad 3aabf3b086
Added check if the ID is empty when deleting
the build was successful Details
2017-11-24 16:27:35 +01:00
konrad 9dcac2a5c2
added bookstruct checking when arriving 2017-11-24 14:40:35 +01:00
konrad a19650ac3a
Passing structs instead of ids
the build was successful Details
2017-11-24 14:36:40 +01:00
konrad 79da356557
Added check if author is empty 2017-11-24 12:39:52 +01:00
konrad 1d2dfa487c
Implemented list, add, update, delete publisher
the build failed Details
2017-11-21 12:09:45 +01:00
konrad 6fbc820db9
gofmt
the build was successful Details
2017-11-21 11:40:07 +01:00
konrad 0d63ab8826
Added methods to add or update an author 2017-11-21 11:38:52 +01:00
konrad 7b864ff958
Bugfix: when editing a book, all authors passed had been inserted again
the build failed Details
2017-11-20 12:49:25 +01:00
konrad c160f5720b
Finished Book update method
the build failed Details
2017-11-18 09:32:30 +01:00
konrad 5a48f62ce2
gofmt 2017-11-17 11:41:18 +01:00
konrad 9016443409
Moved getting authors from a book to a seperate function
+ Implemented getting quantity in book list
2017-11-17 11:40:43 +01:00
konrad a3b0d1d94b
Fixed book not found when quantity did not exist
the build was successful Details
2017-11-17 11:26:24 +01:00
konrad fb305e5b39
Implemented book quantity insert when a book is inserted
the build was successful Details
+ Books can now either send through a direct json payload or via one form value
+ lint & gofmt
2017-11-16 19:07:32 +01:00
konrad 19852d0b6a
Moved show sql query setting to config
the build was successful Details
2017-11-16 13:09:30 +01:00
konrad df0ad4adeb
Moved interface setting to config 2017-11-16 13:04:45 +01:00
konrad c98c593307
Moved database connection to configfile 2017-11-16 12:57:08 +01:00
konrad 9630e8fda2
Started implementing book quantities
the build was successful Details
2017-11-16 12:51:23 +01:00
konrad 4715459d95
Added method to add first user on first run 2017-11-16 12:28:27 +01:00
konrad 0e814d026e
Fixed Lint + gofmt 2017-11-15 16:16:44 +01:00
konrad f48de8e75f
Added dynamically get books status 2017-11-15 16:13:47 +01:00
konrad cb3a37b483
Started implementing of inserting new books
the build was successful Details
2017-11-14 16:33:01 +01:00
konrad 5ba3ca342b
pointer fix
the build was successful Details
2017-11-08 17:14:51 +01:00
konrad ed1cd4be11
Fixed lint + gofmt
the build failed Details
2017-11-08 17:12:05 +01:00
konrad b8738e9b52
Implemented method to accept user login as json 2017-11-08 17:06:06 +01:00
konrad 07c9fcdea1
Added basic frontend structure 2017-11-08 14:42:43 +01:00
konrad 14b7a42d32
Fixed Build
the build was successful Details
2017-11-08 10:57:38 +01:00
konrad 64dd0ce2d0
Fixed lint
the build failed Details
2017-11-08 10:55:17 +01:00
konrad b4b0b737a3
gofmt 2017-11-07 16:35:10 +01:00
konrad 55038bbb2b Fixed showing of author ids
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-11 21:47:50 +02:00
konrad 9644f2304f Implemented returning of newly inserted publisher
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-11 21:45:31 +02:00
konrad 0e0c403d57 Improved inserting of new book
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-11 21:42:16 +02:00
konrad 6ba44a5986 Added method to update a publisher
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-11 20:27:05 +02:00
konrad 63e93036a1 Added method to update an author
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-11 20:22:31 +02:00
konrad cfcf4ac365 Insert methods now return the inserted object
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-11 18:17:51 +02:00
kolaente a78ac5d7da Added methods to add and delete a publisher
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-11 18:06:51 +02:00
kolaente 500007bdae Added method to add and delete an author
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-11 17:20:56 +02:00
konrad 57b6997267 implemented method to delete a book
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-10 22:47:54 +02:00
konrad 2e360becca implemented authors and publishers search
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-10 21:58:55 +02:00
konrad 38fdf9cbd8 implemented books search
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-10 21:40:14 +02:00
konrad ce6c02a1cc Implemented Publisher List functions
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-10 18:23:52 +02:00
konrad 6ce0c553d4 Implemented Author lookup
+ book lookup optimization

Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-10 18:11:09 +02:00
konrad fed91b9e8a Added lookup one single book
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-10 17:14:51 +02:00
konrad 167ba086d7 Added lookup one single book
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-10 17:01:33 +02:00
konrad 2c913f99d5 Added more details to books list
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-10 12:06:34 +02:00
konrad f8a6b57c33 Implemented new models
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-10 11:20:16 +02:00
konrad c5592ad45b Implemented user via db
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-10 11:09:26 +02:00
konrad 08b14a71a9 added config file
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-10 10:40:36 +02:00
konrad 1249987e5f added comments
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-10 09:47:05 +02:00
konrad 718f6bf6bb Added basic insert with auth
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-09 21:06:40 +02:00
konrad d29b619418 Struct definition
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-09 18:29:46 +02:00
konrad d26df6c160 Proper Error Handling
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-09 18:29:09 +02:00
konrad 9e6bcb12be basic list
Signed-off-by: kolaente <konrad@kola-entertainments.de>
2017-10-09 18:20:16 +02:00
konrad a91fd9c204 Added routes 2017-10-09 14:29:21 +02:00