11 Commits

Author SHA1 Message Date
ekzyis
bf8717e2b1 Add hot reload for development 2023-09-09 22:52:50 +02:00
ekzyis
7094438152 Use cost function
With this cost function, buying and selling is a lot easier since it uses the same function.

Also, shares are now always integers which is also easier to grasp.

Reference: http://blog.oddhead.com/2006/10/30/implementing-hansons-market-maker/
2023-09-09 22:52:50 +02:00
ekzyis
87ce57c862 Add binary market page 2023-09-09 22:52:50 +02:00
ekzyis
fbab0b4975 Add PUBLIC_URL env var 2023-09-09 22:52:50 +02:00
ekzyis
eb977576db Fix duplicate key error 2023-09-09 22:52:50 +02:00
ekzyis
2053d15290 Check database connection on startup 2023-09-09 22:52:50 +02:00
ekzyis
dabb1be2f0 Fix missing error log 2023-09-09 22:52:50 +02:00
ekzyis
e6c20935bc Add users table 2023-09-09 22:52:50 +02:00
ekzyis
d876997eeb Return 500 on error during session query 2023-09-09 22:52:50 +02:00
ekzyis
04f3feaf8c Remove wrong comment 2023-09-09 22:52:50 +02:00
ekzyis
0302c3fcba Move code into src/ 2023-09-09 22:52:50 +02:00