Commit graph

499 commits

Author SHA1 Message Date
Sorrel Bri
6e0ec94676 debug room socket connect dispatch 2020-02-05 16:45:25 -08:00
Sorrel Bri
a0d721ab9a refactor sockets to be launched with namespace by components 2020-02-05 16:45:25 -08:00
Sorrel Bri
61b13ab97a refacor sockets on server and client to utilize dispatch for socket meessages 2020-02-05 16:45:25 -08:00
Sorrel Bri
86a75d146e stub socket connection to game id namespace 2020-02-05 16:45:25 -08:00
Sorrel Bri
a4a9a72ece stub socket connection to game id namespace 2020-02-05 16:45:25 -08:00
Sorrel Bri
026af700df stub games/:id endpoint to join game socket room 2020-02-05 16:45:24 -08:00
Sorrel Bri
b8681e8ef5 refactor join_game_request to require unique users 2020-02-05 16:45:24 -08:00
Sorrel Bri
11855c57d4 connect join_game_request socket at client and server 2020-02-05 16:45:24 -08:00
Sorrel Bri
6757553785 patch rooms/:id failure to return multiple games 2020-02-05 16:45:24 -08:00
Sorrel Bri
59b5d31c35 patch no-query bug in rooms/ endpoint 2020-02-05 16:45:24 -08:00
Sorrel Bri
8589976264 refactor api rooms/:id endpoint to deliver current room without table join 2020-02-05 16:45:24 -08:00
Sorrel Bri
775e1fc050 stub room display with messages and game link 2020-02-05 16:45:24 -08:00
Sorrel Bri
38014ac497 dispatch all room data to state upon rooms/:id 2020-02-05 16:45:24 -08:00
Sorrel Bri
f94f4fd2c0 refactor api room endpoint to return unjoined game room data 2020-02-05 16:45:23 -08:00
Sorrel Bri
695d1ea2b1 add SET_MESSAGES to reducer 2020-02-05 16:45:23 -08:00
Sorrel Bri
6467004a89 refactor services and reducers to parse JSON before data hits dispatch 2020-02-05 16:45:23 -08:00
Sorrel Bri
83d3abf188 add client routing to rooms/:id, move socket(rooms/roomId) connect from Home page to Room page 2020-02-05 16:45:23 -08:00
Sorrel Bri
661fc74df2 serve room with message data from api/v1/rooms/:id 2020-02-05 16:45:23 -08:00
Sorrel Bri
aa0c850aab serve room with joined game data from api/v1/rooms/:id 2020-02-05 16:45:23 -08:00
Sorrel Bri
c001b939d1 stub room socket connection (client + server) 2020-02-05 16:45:23 -08:00
Sorrel Bri
e8867b9634 add message table with migration 2020-02-05 16:45:23 -08:00
Sorrel Bri
464a8ffbf4 add move table with migration 2020-02-05 16:45:22 -08:00
Sorrel Bri
f3d21e0444 add game table with seed and migration 2020-02-05 16:45:22 -08:00
Sorrel Bri
522782e3a5 add time_setting table with seed and migration 2020-02-05 16:45:22 -08:00
Sorrel Bri
d9edea315a patch remove unnecessary socket.io cookie 2020-02-05 16:45:22 -08:00
Sorrel Bri
3e8e99a816 Merge branch 'gameroom_endpoint' 2020-02-05 16:45:22 -08:00
Sorrel Bri
1ef3adc3d7 patch https cookies in production 2020-02-05 16:45:22 -08:00
Sorrel Bri
0fb6a7bfb8 patch https cookies in production 2020-02-05 16:45:22 -08:00
Sorrel Bri
05b7f338ff hook SET_ROOMS into rooms Service 2020-02-05 16:45:22 -08:00
Sorrel Bri
8ad488c3ce add SET_ROOMS dispatch 2020-02-05 16:45:22 -08:00
Sorrel Bri
6114c20e2c serve all public rooms at rooms index 2020-02-05 16:45:22 -08:00
Sorrel Bri
762c4d93a8 stub rooms index route and controller 2020-02-05 16:45:22 -08:00
Sorrel Bri
47856773eb add room migration and simple seeds 2020-02-05 16:45:21 -08:00
Sorrel Bri
d706a9d137 serve basic page at api endpoint to redirect user 2020-02-05 16:45:21 -08:00
Sorrel Bri
6669d3f16b patch component references in pages/ 2020-02-05 16:45:21 -08:00
Sorrel Bri
cb3fb31b24 patch reference to MainWrapper component 2020-02-05 16:45:21 -08:00
Sorrel Bri
b06b490d6f rename RoomArchive components to differentiate from NewsArchive 2020-02-05 16:45:21 -08:00
Sorrel Bri
9dc91de5ed stub home and rooms sidebar components 2020-02-05 16:45:21 -08:00
Sorrel Bri
54abeb65fc patch to hide password input on login form 2020-02-05 16:45:21 -08:00
Sorrel Bri
00757ac2d2 patch frontend api endpoint in config 2020-02-05 16:45:21 -08:00
Sorrel Bri
2f9cb987ba add manual set Access Control Allow Origin header 2020-02-05 16:45:21 -08:00
Sorrel Bri
891ba5ab2f patch CORS 2020-02-05 16:45:21 -08:00
Sorrel Bri
188cd0b966 patch config for production 2020-02-05 16:45:20 -08:00
Sorrel Bri
6f86007632 patch config for production 2020-02-05 16:45:20 -08:00
Sorrel Bri
a9a10c1adb add login hook to frontend 2020-02-05 16:45:20 -08:00
Sorrel Bri
18d351d698 add validation for username and email on signup 2020-02-05 16:45:20 -08:00
Sorrel Bri
2c9aca4856 add client side password confirmation check 2020-02-05 16:45:20 -08:00
Sorrel Bri
b8b7890e4f refactor auth and api/index to ensure token verified and sent to dispatch ADD_USER 2020-02-05 16:45:20 -08:00
Sorrel Bri
465a3342f2 refactor auth and api/index to ensure token verified and sent to dispatch ADD_USER 2020-02-05 16:45:20 -08:00
Sorrel Bri
5fa43f8b7e refactor to fetch to ensure proper cookie storage 2020-02-05 16:45:20 -08:00
Sorrel Bri
080ab8a994 serve user from verified jwt 2020-02-05 16:45:20 -08:00
Sorrel Bri
97efe2314b add FormError component to display auth errors 2020-02-05 16:45:19 -08:00
Sorrel Bri
969e44e8e5 hook reducer into signup post response 2020-02-05 16:45:19 -08:00
Sorrel Bri
e4d4652d1b patch server production env allowed origin 2020-02-05 16:45:19 -08:00
Sorrel Bri
42d10a55cd patch signup post for existing user to return 409 2020-02-05 16:45:19 -08:00
Sorrel Bri
9b02705a91 hook reducer into auth/signup request service 2020-02-05 16:45:19 -08:00
Sorrel Bri
78ba0a035e stub styling of side and main content 2020-02-05 16:45:19 -08:00
Sorrel Bri
9014564180 stub sidebar component to display auth form 2020-02-05 16:45:19 -08:00
Sorrel Bri
fee04ec269 stub tests for page components 2020-02-05 16:45:18 -08:00
Sorrel Bri
34959d8e44 debug password hashing function 2020-02-05 16:45:18 -08:00
Sorrel Bri
36c75e9126 stub frontend requests to auth endpoints 2020-02-05 16:45:18 -08:00
Sorrel Bri
1e706fe20f add validation and sanitization for auth/. posts 2020-02-05 16:45:18 -08:00
Sorrel Bri
f35bc165fd patch to remove timeout from login test 2020-02-05 16:45:18 -08:00
Sorrel Bri
98fdf6926c add login verification of user 2020-02-05 16:45:17 -08:00
Sorrel Bri
30c0f9ad97 patch knexfile name to run migrations 2020-02-05 16:45:17 -08:00
Sorrel Bri
8af3685cba add password hash to new user 2020-02-05 16:45:17 -08:00
Sorrel Bri
9a0045d99b stub new user sign up 2020-02-05 16:45:17 -08:00
Sorrel Bri
7b4b48050d add sign jwt function and hook to auth/signup 2020-02-05 16:45:17 -08:00
Sorrel Bri
a629225fae stub auth routes and controllers 2020-02-05 16:45:17 -08:00
Sorrel Bri
cd1273e645 debug migrations path 2020-02-05 16:45:17 -08:00
Sorrel Bri
3a5125893b debug produciton db connection 2020-02-05 16:45:17 -08:00
Sorrel Bri
458876a2b4 add migrate command to server Procfile 2020-02-05 16:45:17 -08:00
Sorrel Bri
1661b3fe65 add create user table migration 2020-02-05 16:45:17 -08:00
Sorrel Bri
413cf63192 deploy subdirectories successfully 2020-02-05 16:45:16 -08:00
Sorrel Bri
d7cf6c44eb return README to root directory 2020-02-05 16:45:16 -08:00
Sorrel Bri
7ef212643d move react module into subdirectory 2020-02-05 16:45:16 -08:00
Sorrel Bri
18d744a7a5 confirm successful deployment 2020-02-05 16:45:16 -08:00
Sorrel Bri
b62458218b add runtime env for production enironment 2020-02-05 16:45:16 -08:00
Sorrel Bri
173bb8766c add production endpoints to react config 2020-02-05 16:45:16 -08:00
Sorrel Bri
48546c9448 change server Procfile to npm start 2020-02-05 16:45:16 -08:00
Sorrel Bri
5977c686a5 remove path from server Procfile 2020-02-05 16:45:16 -08:00
Sorrel Bri
d2fe74ffec add path to server Procfile 2020-02-05 16:45:16 -08:00
Sorrel Bri
f3208819c8 add node to server Procfile 2020-02-05 16:45:16 -08:00
Sorrel Bri
07070439f1 empty react Procfile 2020-02-05 16:45:16 -08:00
Sorrel Bri
cd22eb89e1 add run to Procfile 2020-02-05 16:45:15 -08:00
Sorrel Bri
328bf9128f remove npm from start command 2020-02-05 16:45:15 -08:00
Sorrel Bri
56fbc34ba3 redeploy with namespaced scripts 2020-02-05 16:45:15 -08:00
Sorrel Bri
65bffa11a1 add Procfiles for deploy 2020-02-05 16:45:15 -08:00
Sorrel Bri
e42118d6aa config flow 2020-02-05 16:45:15 -08:00
Sorrel Bri
cc6b00b72b patch page function tests, import pages in App 2020-02-05 16:45:15 -08:00
Sorrel Bri
2ae07a1a99 stub page components 2020-02-05 16:45:15 -08:00
Sorrel Bri
24c4130f7f stub mocha/chai for testing server 2020-02-05 16:45:15 -08:00
Sorrel Bri
6a373a1172 stub react pages structure 2020-02-05 16:45:15 -08:00
Sorrel Bri
34dbdaab7b stub middleware (including socket), controllers architecture 2020-02-05 16:45:15 -08:00
Sorrel Bri
64dc036296 connect socket 2020-02-05 16:45:15 -08:00
Sorrel Bri
aeb64cb6a5 connect socket 2020-02-05 16:45:14 -08:00
Sorrel Bri
840fae2bf7 connect to db with knex 2020-02-05 16:45:14 -08:00
Sorrel Bri
e83ca4a1b5 restrict CORS to env defined origin 2020-02-05 16:45:14 -08:00
Sorrel Bri
ea878c9057 configure simple CORS 2020-02-05 16:45:14 -08:00
Sorrel Bri
b2d9eaca0d stub basic connection 2020-02-05 16:45:14 -08:00
Sorrel Bri
dc7b895dd6 add react frontend structure 2020-02-05 16:45:14 -08:00
Sorrel Bri
edf520ba79 remove views/, add controllers/ 2020-02-05 16:45:14 -08:00
Sorrel Bri
3ca3e28d45 git init 2020-02-05 16:45:13 -08:00
Sorrel Bri
baa843feeb init lerna 2020-02-05 16:45:13 -08:00
Sorrel Bri
d087671cf2 stub nav form styles and fix board span bug 2020-02-05 16:45:13 -08:00
Sorrel Bri
d58eb95c76 decoupled show Auth form logic from Home sidebar for use in other sidebars on Auth errors 2020-02-05 16:45:13 -08:00
Sorrel Bri
eb5df6069c style player area on game screen 2020-02-05 16:45:13 -08:00
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
b294e009d3 stub board on game page 2020-02-05 16:45:12 -08:00
Sorrel Bri
9a20746b78 stub Game components 2020-02-05 16:45:12 -08:00
Sorrel Bri
3ecb5889c1 add seed moves 2020-02-05 16:45:12 -08:00
Sorrel Bri
5651e1fa4c stub game connection via socket room 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
6a5ae9cc71 patch to cleanup reducer directory filenames 2020-02-05 16:45:12 -08:00
Sorrel Bri
638e57dd29 stub default falsey values for initState function to prevent crash on 500 2020-02-05 16:45:12 -08:00
Sorrel Bri
9f5842703b create Loading component with pinwheel ko animation 2020-02-05 16:45:12 -08:00
Sorrel Bri
a58c2ed04a add table styling to game buttons in game room 2020-02-05 16:45:12 -08:00
Sorrel Bri
c853cb2ad8 refactor all jsx to BEM 2020-02-05 16:45:11 -08:00
Sorrel Bri
e1515db88c debug room socket connect dispatch 2020-02-05 16:45:11 -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
c033e3558a 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
c21807adc8 stub room display with messages and game link 2020-02-05 16:45:10 -08:00
Sorrel Bri
9c3fbb9572 dispatch all room data to state upon rooms/:id 2020-02-05 16:45:10 -08:00
Sorrel Bri
40dbe487e1 refactor api room endpoint to return unjoined game room data 2020-02-05 16:45:10 -08:00
Sorrel Bri
ebd76baac6 add SET_MESSAGES to reducer 2020-02-05 16:45:10 -08:00
Sorrel Bri
95e54df9fd refactor services and reducers to parse JSON before data hits dispatch 2020-02-05 16:45:10 -08:00
Sorrel Bri
16adb58cb0 add client routing to rooms/:id, move socket(rooms/roomId) connect from Home page to Room page 2020-02-05 16:45:09 -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
8aa84d4abe Merge branch 'gameroom_endpoint' 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
9729d15ff2 patch https cookies in production 2020-02-05 16:45:08 -08:00
Sorrel Bri
cba61a78e9 hook SET_ROOMS into rooms Service 2020-02-05 16:45:08 -08:00
Sorrel Bri
5a7f3bc177 add SET_ROOMS dispatch 2020-02-05 16:45:08 -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
8933e25156 patch component references in pages/ 2020-02-05 16:45:08 -08:00
Sorrel Bri
2dc17a9588 patch reference to MainWrapper component 2020-02-05 16:45:08 -08:00
Sorrel Bri
230dadd3d2 rename RoomArchive components to differentiate from NewsArchive 2020-02-05 16:45:07 -08:00
Sorrel Bri
101531e727 stub home and rooms sidebar components 2020-02-05 16:45:07 -08:00
Sorrel Bri
c0aff888f5 patch to hide password input on login form 2020-02-05 16:45:07 -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
3cbba5d072 patch config for production 2020-02-05 16:45:07 -08:00
Sorrel Bri
b1cf43d84b patch config for production 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
3b868cec4e add validation for username and email on signup 2020-02-05 16:45:06 -08:00
Sorrel Bri
5fbfc28024 add client side password confirmation check 2020-02-05 16:45:06 -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
5c8da62edb 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
d77216d762 refactor to fetch to ensure proper cookie storage 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
c2a0ad2ff2 add FormError component to display auth errors 2020-02-05 16:45:06 -08:00
Sorrel Bri
8c6e38ec66 hook reducer into signup post response 2020-02-05 16:45:05 -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
0e2fe08666 hook reducer into auth/signup request service 2020-02-05 16:45:05 -08:00
Sorrel Bri
9d10ed4fe2 stub styling of side and main content 2020-02-05 16:45:05 -08:00
Sorrel Bri
3068b94c5b stub sidebar component to display auth form 2020-02-05 16:45:05 -08:00
Sorrel Bri
8d3991ef55 stub tests for page components 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
fea8c9035f stub frontend requests to auth endpoints 2020-02-05 16:45:04 -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
Sorrel Bri
55104ba3ff add create user table migration 2020-02-05 16:45:03 -08:00
Sorrel Bri
d5d7121a71 deploy subdirectories successfully 2020-02-05 16:45:03 -08:00
Sorrel Bri
5adf8b4690 return README to root directory 2020-02-05 16:45:03 -08:00
Sorrel Bri
5f6889439b move react module into subdirectory 2020-02-05 16:45:03 -08:00
Sorrel Bri
6011354d67 confirm successful deployment 2020-02-05 16:45:03 -08:00