Commit graph

65 commits

Author SHA1 Message Date
Sorrel Bri
ca98733365 stub render board state from make_move 2020-02-05 16:45:13 -08:00
Sorrel Bri
2d04f40bd6 stub make move socket message to add move to game 2020-02-05 16:45:13 -08:00
Sorrel Bri
8310307460 refactor make move to serve game meta data with game record 2020-02-05 16:45:13 -08:00
Sorrel Bri
d2d34ff658 check legality of move prior to posting 2020-02-05 16:45:13 -08:00
Sorrel Bri
b38637d3c8 stub make move to game service 2020-02-05 16:45:13 -08:00
Sorrel Bri
d83a58dcb4 stub game services to store active games 2020-02-05 16:45:12 -08:00
Sorrel Bri
3ecb5889c1 add seed moves 2020-02-05 16:45:12 -08:00
Sorrel Bri
e02746cb67 stub game connection via socket room 2020-02-05 16:45:12 -08:00
Sorrel Bri
16468fb907 refactor sockets to be launched with namespace by components 2020-02-05 16:45:11 -08:00
Sorrel Bri
6f8b68a354 refacor sockets on server and client to utilize dispatch for socket meessages 2020-02-05 16:45:11 -08:00
Sorrel Bri
7f1386f7a7 stub socket connection to game id namespace 2020-02-05 16:45:11 -08:00
Sorrel Bri
07af4e7be5 stub games/:id endpoint to join game socket room 2020-02-05 16:45:11 -08:00
Sorrel Bri
d7c024e286 refactor join_game_request to require unique users 2020-02-05 16:45:11 -08:00
Sorrel Bri
a3180b0bde connect join_game_request socket at client and server 2020-02-05 16:45:11 -08:00
Sorrel Bri
f6d4ed49ca patch rooms/:id failure to return multiple games 2020-02-05 16:45:10 -08:00
Sorrel Bri
e3ce466bb4 patch no-query bug in rooms/ endpoint 2020-02-05 16:45:10 -08:00
Sorrel Bri
34c3b34ada refactor api rooms/:id endpoint to deliver current room without table join 2020-02-05 16:45:10 -08:00
Sorrel Bri
007a5c96d6 serve room with message data from api/v1/rooms/:id 2020-02-05 16:45:09 -08:00
Sorrel Bri
b3d05639ad serve room with joined game data from api/v1/rooms/:id 2020-02-05 16:45:09 -08:00
Sorrel Bri
5867c0ddd9 stub room socket connection (client + server) 2020-02-05 16:45:09 -08:00
Sorrel Bri
603201d45c add message table with migration 2020-02-05 16:45:09 -08:00
Sorrel Bri
33141284eb add move table with migration 2020-02-05 16:45:09 -08:00
Sorrel Bri
3f8d898f43 add game table with seed and migration 2020-02-05 16:45:09 -08:00
Sorrel Bri
99a616fe37 add time_setting table with seed and migration 2020-02-05 16:45:09 -08:00
Sorrel Bri
5addf9ace0 patch remove unnecessary socket.io cookie 2020-02-05 16:45:09 -08:00
Sorrel Bri
d3b3028adf patch https cookies in production 2020-02-05 16:45:09 -08:00
Sorrel Bri
36eeb8202b serve all public rooms at rooms index 2020-02-05 16:45:08 -08:00
Sorrel Bri
acbc9c901b stub rooms index route and controller 2020-02-05 16:45:08 -08:00
Sorrel Bri
a30d4f3a45 add room migration and simple seeds 2020-02-05 16:45:08 -08:00
Sorrel Bri
8bd52fd993 serve basic page at api endpoint to redirect user 2020-02-05 16:45:08 -08:00
Sorrel Bri
68fedb4d2f patch frontend api endpoint in config 2020-02-05 16:45:07 -08:00
Sorrel Bri
b69edb9182 add manual set Access Control Allow Origin header 2020-02-05 16:45:07 -08:00
Sorrel Bri
ca43baf181 patch CORS 2020-02-05 16:45:07 -08:00
Sorrel Bri
d20c070c02 add login hook to frontend 2020-02-05 16:45:07 -08:00
Sorrel Bri
e90abc283a refactor auth and api/index to ensure token verified and sent to dispatch ADD_USER 2020-02-05 16:45:06 -08:00
Sorrel Bri
1ee4c28d4c serve user from verified jwt 2020-02-05 16:45:06 -08:00
Sorrel Bri
c905dd05b8 patch server production env allowed origin 2020-02-05 16:45:05 -08:00
Sorrel Bri
e0a336bd35 patch signup post for existing user to return 409 2020-02-05 16:45:05 -08:00
Sorrel Bri
16d5c97e3f debug password hashing function 2020-02-05 16:45:05 -08:00
Sorrel Bri
02d408adba add validation and sanitization for auth/. posts 2020-02-05 16:45:04 -08:00
Sorrel Bri
add9e49bb6 patch to remove timeout from login test 2020-02-05 16:45:04 -08:00
Sorrel Bri
6033a99223 add login verification of user 2020-02-05 16:45:04 -08:00
Sorrel Bri
c480d986d2 patch knexfile name to run migrations 2020-02-05 16:45:04 -08:00
Sorrel Bri
52b31b7fe2 add password hash to new user 2020-02-05 16:45:04 -08:00
Sorrel Bri
89eca4a5c1 stub new user sign up 2020-02-05 16:45:04 -08:00
Sorrel Bri
323ea5d24c add sign jwt function and hook to auth/signup 2020-02-05 16:45:04 -08:00
Sorrel Bri
85ebffcdcf stub auth routes and controllers 2020-02-05 16:45:03 -08:00
Sorrel Bri
118989a9cc debug migrations path 2020-02-05 16:45:03 -08:00
Sorrel Bri
a451144581 debug produciton db connection 2020-02-05 16:45:03 -08:00
Sorrel Bri
52e6271738 add migrate command to server Procfile 2020-02-05 16:45:03 -08:00