3 Commits

Author SHA1 Message Date
e95bdff3b8 wip: create market
TODO:
* redirect to /markets/:id
  * redirect already works but page does not exist
  * make sure invoice modal is closed on redirect
* add button to close invoice
* validate end date
2024-08-09 04:35:06 -05:00
ekzyis
c66e96bf3f refactor: fix init and use DI
* fix init misuse which makes running tests impossible since tests are run inside a temporary test directory which breaks env loading

* use dependency injection pattern for server creation and global server context in route handlers
2023-11-03 20:34:21 +01:00
ekzyis
7558655458 refactor: Structure code into different packages
I have put too much code into the same files.

Also, I put everything into the same package: main.

This package is only meant for executables.

Therefore, I have refactored my code to use multiple packages. These packages also guarantee separation of concerns since Golang doesn't allow cyclic imports.
2023-09-10 23:13:08 +02:00