Commit graph

67 commits

Author SHA1 Message Date
bronku
969dbfb1aa Extract database migration logic to migrations.go 2025-03-23 21:45:24 +01:00
bronku
e5c5603ebd Return error if cake not found in GetCake 2025-03-23 21:36:10 +01:00
bronku
922710a2cd Refactor store: use migrations and split logic 2025-03-23 19:54:01 +01:00
bronku
376edd7267 Add error handling for token key generation 2025-03-23 10:51:07 +01:00
bronku
e2dda0ade7 Reorganize project structure and fix SQLite usage 2025-03-23 10:45:42 +01:00
bronku
0e762841a3 Refactor postOrder to render confirmation page 2025-03-23 00:25:38 +01:00
bronku
47323b32f8 Refactor: Fetch handler to return status code 2025-03-22 23:53:38 +01:00
bronku
a7bd1478bf Refactor server: use render func for templates 2025-03-22 23:46:33 +01:00
bronku
ca4e448f82 Refactor handler to server package 2025-03-22 22:35:47 +01:00
bronku
fb97ba20c0 Refactor routing and middleware architecture 2025-03-22 11:22:45 +01:00
bronku
08d41b0348 Refactor router initialization into constructor 2025-03-22 08:57:19 +01:00
bronku
4830fbc870 Move handler code to router package and rename types 2025-03-22 08:49:46 +01:00
bronku
a70d5a8548 moved logger into middleware 2025-03-21 23:39:12 +01:00
bronku
e75468ce55 Move database code to store package 2025-03-21 23:35:55 +01:00
bronku
d1c393736a update todo 2025-03-21 23:19:52 +01:00
bronku
ab662bd4b8 Add session management for user authentication 2025-03-21 23:13:14 +01:00
bronku
e235e3d8a8 Login form handling 2025-03-21 20:37:25 +01:00
bronku
8b5ac8c19f Add login form 2025-03-21 20:34:36 +01:00
bronku
ab01a459af Replace request counter with basic auth/token system 2025-03-21 20:05:30 +01:00
bronku
c504f8c597 Add authentication middleware to HTTP handlers 2025-03-21 19:38:42 +01:00
bronku
5d6bbdb943 xd? 2025-03-21 18:53:11 +01:00
bronku
2f96ca3105 Merge branch 'database' of github.com:Bronku/iroon into database 2025-03-21 18:52:25 +01:00
bronku
b61bae7cd8 Separate db initialization from store opening 2025-03-21 18:50:53 +01:00
bronku
2dad3f1305 Separate db initialization from store opening 2025-03-21 18:50:26 +01:00
bronku
646501d609 Update store.go 2025-03-20 12:29:05 +01:00
bronku
a950df6ceb show order contents properly 2025-03-20 12:28:19 +01:00
bronku
b85bbe6e55 Handle errors in getOrder 2025-03-20 10:43:19 +01:00
bronku
262b586d0a Implement getCake endpoint and update memdb 2025-03-20 10:35:39 +01:00
bronku
d5c6cd4dc0 Update README.md 2025-03-20 07:47:04 +01:00
bronku
e0a41a13e9 Update TODO.md 2025-03-20 07:42:42 +01:00
bronku
34e2d8c01a Implement order items 2025-03-20 07:41:27 +01:00
bronku
605ea31fe1 update tests 2025-03-19 22:10:43 +01:00
bronku
23647d74fc Switch from in-memory to SQLite storage 2025-03-19 11:59:08 +01:00
bronku
e55ca30d20 Add status field to orders 2025-03-18 22:30:16 +01:00
bronku
d4b76f6307 Create TODO.md 2025-03-18 22:02:22 +01:00
bronku
475d79f16e full form parsing 2025-02-07 09:27:20 +01:00
bronku
0570e47be9 added store 2025-02-07 08:40:04 +01:00
bronku
ea6546ec17 adding to basket 2025-02-06 22:14:46 +01:00
bronku
56fff533f2 not really working 2025-02-06 21:31:59 +01:00
bronku
8081d61f2f parsing metadata 2025-02-06 20:26:34 +01:00
bronku
bc4c9d62f0 logging, and handler struct 2025-02-06 20:06:42 +01:00
bronku
40fc76c7fc why do I always overcomplicate things 2025-02-06 15:14:31 +01:00
bronku
9e2861ecba xd 2025-02-06 14:22:09 +01:00
bronku
9208e62f1a changed terminology 2025-02-01 19:26:45 +01:00
bronku
ea81abb718 spellcheck, and refreshing cake list 2025-02-01 19:25:53 +01:00
Bronku
2c90e19eba rudimentary css 2025-02-01 08:18:08 +01:00
Bronku
7515010afd move id to cake struct 2025-02-01 07:29:24 +01:00
Bronku
cd7c9a9d0c adding cakes 50% working 2025-01-31 22:56:21 +01:00
Bronku
a09cee09c8 editing cakes by id 2025-01-31 22:26:31 +01:00
Bronku
353dffdd82 renamed cake editor 2025-01-31 20:12:26 +01:00