Commit Graph

43 Commits

Author SHA1 Message Date
Nathaniel Tampus
1fab992f53 add auth controllers & validation improvements 2023-03-19 20:52:58 +08:00
Nathaniel Tampus
76b0d142cb update user db queries 2023-03-19 20:52:04 +08:00
Nathaniel Tampus
17ef05b31c sync user info in games, adjust game timeout 2023-03-19 20:51:29 +08:00
Nathaniel Tampus
42dc24a9bc init db on server startup 2023-03-19 20:44:01 +08:00
Nathaniel Tampus
a9630a4cf1 update deps, add argon2 2023-03-19 20:43:31 +08:00
Nathaniel Tampus
96a262ec29 minor cleanup 2023-03-19 20:43:00 +08:00
Nathaniel Tampus
bb9a723a11 update deps 2023-03-15 19:25:00 +08:00
Nathaniel Tampus
775a32625c clarify server start log for development 2023-03-11 13:08:45 +08:00
Nathaniel Tampus
e632fc0618 update deps 2023-03-11 13:07:49 +08:00
Nathaniel Tampus
021bbee894 lower game deletion timeout to 10 minutes 2023-03-08 23:14:01 +08:00
Nathaniel Tampus
d9bb753315 log cleanup 2023-03-06 19:58:38 +08:00
Nathaniel Tampus
caa12fd5ce check pattern in backend as well 2023-03-06 18:59:35 +08:00
Nathaniel Tampus
440e8cd540 exclude ended games from public api 2023-03-06 18:43:50 +08:00
Nathaniel Tampus
4e3e77e014 adjust game inactivity time to 15 minutes 2023-03-06 18:41:54 +08:00
Nathaniel Tampus
c548f10d63 cleanup comment 2023-03-06 15:10:00 +08:00
Nathaniel Tampus
fd66897ecd start pgn with empty string 2023-03-06 14:35:18 +08:00
Nathaniel Tampus
0a3fd532cd leaveLobby improvements 2023-03-06 13:26:49 +08:00
Nathaniel Tampus
754d149c4a session id detection improvements 2023-03-06 13:06:23 +08:00
Nathaniel Tampus
fe0e045fd8 show player disconnected state 2023-03-06 12:42:49 +08:00
Nathaniel Tampus
a61691114e add optional deps to server 2023-03-05 19:04:19 +08:00
Nathaniel Tampus
5699663dd2 don't remove player on disconnect 2023-03-05 19:03:58 +08:00
Nathaniel Tampus
f3eaf23a8f use req.params directly 2023-03-04 18:44:20 +08:00
Nathaniel Tampus
6dc9f1a18a update game endpoints
for getting all public games and finding specific games with code
2023-03-04 18:36:43 +08:00
Nathaniel Tampus
572eb22fc6 Merge branch 'main' into dev 2023-03-02 19:42:35 +08:00
Nathaniel Tampus
77a632520e update deps 2023-03-02 19:38:24 +08:00
Nathaniel Tampus
44d460bbec remove winner field from db 2023-03-01 22:45:17 +08:00
Nathaniel Tampus
ebc8c66064 update deps 2023-02-25 21:16:02 +08:00
Nathaniel Tampus
393353afad update deps, add tabler icons 2023-02-19 19:38:38 +08:00
Nathaniel Tampus
96280b6d71 env variables for easier dev setup 2023-02-16 21:33:17 +08:00
Nathaniel Tampus
279f1b0f63 increase socket ping interval & timeout 2023-02-16 21:28:54 +08:00
Nathaniel Tampus
2e1b981973 update deps 2023-02-16 21:26:14 +08:00
Nathaniel Tampus
209ebbfd9d update server deps 2023-02-13 22:49:01 +08:00
Nathaniel Tampus
22f13144c1 update main field in server package.json 2023-02-06 15:49:53 +08:00
Nathaniel Tampus
20bcb98335 lock chess.js to beta 2 to avoid esm issues 2023-02-06 15:37:58 +08:00
Nathaniel Tampus
015977aa82 update server deps 2023-02-06 15:17:08 +08:00
Nathaniel Tampus
4676a99714 env variables for easier dev setup 2023-02-06 14:48:31 +08:00
Nathaniel Tampus
bd39cf8c46 npm workspaces, NodeNext for server 2023-02-05 13:49:40 +08:00
Nathaniel Tampus
dc233b2c84 server-side move validation improvements 2023-01-16 15:25:39 +08:00
Nathaniel Tampus
a65202357e add timeout for inactive games
#1
also removed some redundant code
2023-01-16 15:10:53 +08:00
Nathaniel Tampus
e823fb15e9 handle invalid move exceptioin & support promotion 2023-01-16 14:36:55 +08:00
Nathaniel Tampus
bec3ac1fca update deps 2023-01-16 13:53:03 +08:00
Nathaniel Tampus
dd4e51eeaf change default api port 2023-01-03 16:14:07 +08:00
Nathaniel Tampus
17ce3cf4c4 move to public repo 2023-01-03 15:47:30 +08:00