Commit Graph

12 Commits

Author SHA1 Message Date
ekzyis a98cd36cb5 nostr login with NIP-07 (window.nostr) 2024-10-02 15:22:23 -05:00
ekzyis 845157c954 Add market form + page
* market form with question, description and end date
* markets cost 1k sats
* a goroutine polls pending invoices from the db and checks LND for their status
* markets are listed on front page (after paid)
* market page contains buttons to bet yes or no
* users have names now

TODO:
* show correct market percentage
* show how percentage changed over time in chart
* validate end date
* implement betting / order form
2024-08-24 02:35:15 -05:00
ekzyis 5518553221 Randomize figlet font 2024-07-10 07:25:03 +02:00
ekzyis 3d3ae16617 Index page with templ 2024-07-10 04:47:25 +02:00
ekzyis 22a83e04ef Fix unknown network 'signet' 2023-11-23 02:00:37 +01:00
ekzyis fc6fb9914e Test login + callback 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
ekzyis e5f5759871 Redirect after payment 2023-09-09 22:52:51 +02:00
ekzyis 921623ee4d Respond with 402 Payment Required 2023-09-09 22:52:51 +02:00
ekzyis 87ce57c862 Add binary market page 2023-09-09 22:52:50 +02:00
ekzyis 9440f58efe Add sessions using LNURL-auth 2023-09-09 22:52:50 +02:00
ekzyis 06043c791e Use minimalist Go web framework Echo 2023-09-09 22:52:50 +02:00