Commit graph

505 commits

Author SHA1 Message Date
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
Sorrel Bri
f6b52000f3 add runtime env for production enironment 2020-02-05 16:45:03 -08:00
Sorrel Bri
3d81aeda5e add production endpoints to react config 2020-02-05 16:45:03 -08:00
Sorrel Bri
9ea54db3e2 change server Procfile to npm start 2020-02-05 16:45:02 -08:00
Sorrel Bri
962d0f9bcf remove path from server Procfile 2020-02-05 16:45:02 -08:00
Sorrel Bri
ebe945245c add path to server Procfile 2020-02-05 16:45:02 -08:00
Sorrel Bri
94c6a97265 add node to server Procfile 2020-02-05 16:45:02 -08:00
Sorrel Bri
489fde4972 empty react Procfile 2020-02-05 16:45:02 -08:00
Sorrel Bri
b91f468810 add run to Procfile 2020-02-05 16:45:02 -08:00
Sorrel Bri
2b74813c14 remove npm from start command 2020-02-05 16:45:02 -08:00
Sorrel Bri
2f65341daa redeploy with namespaced scripts 2020-02-05 16:45:02 -08:00
Sorrel Bri
0356002022 add Procfiles for deploy 2020-02-05 16:45:02 -08:00
Sorrel Bri
ba1211d0d6 config flow 2020-02-05 16:45:02 -08:00
Sorrel Bri
538e911b21 patch page function tests, import pages in App 2020-02-05 16:45:02 -08:00
Sorrel Bri
7d4ffc4cc0 stub page components 2020-02-05 16:45:02 -08:00
Sorrel Bri
101def1cac stub mocha/chai for testing server 2020-02-05 16:45:01 -08:00
Sorrel Bri
fa9b049e58 stub react pages structure 2020-02-05 16:45:01 -08:00
Sorrel Bri
9f0875f483 stub middleware (including socket), controllers architecture 2020-02-05 16:45:01 -08:00
Sorrel Bri
397617eb34 connect socket 2020-02-05 16:45:01 -08:00
Sorrel Bri
395e2b1d86 connect socket 2020-02-05 16:45:01 -08:00
Sorrel Bri
90e078fa86 connect to db with knex 2020-02-05 16:45:01 -08:00
Sorrel Bri
8a203cb096 restrict CORS to env defined origin 2020-02-05 16:45:01 -08:00
Sorrel Bri
c94c64b106 configure simple CORS 2020-02-05 16:45:01 -08:00
Sorrel Bri
39cdef0b02 stub basic connection 2020-02-05 16:45:01 -08:00
Sorrel Bri
709220e19e add react frontend structure 2020-02-05 16:45:01 -08:00
Sorrel Bri
8af1ea67d3 remove views/, add controllers/ 2020-02-05 16:45:00 -08:00
Sorrel Bri
384056b3bb git init 2020-02-05 16:45:00 -08:00
Sorrel Bri
20a20cd7be init lerna 2020-02-05 16:44:38 -08:00
Sorrel Bri
3943d08ab6 stub nav form styles and fix board span bug 2020-02-05 16:44:37 -08:00
Sorrel Bri
08e76b33d0 decoupled show Auth form logic from Home sidebar for use in other sidebars on Auth errors 2020-02-05 16:44:37 -08:00
Sorrel Bri
94c40e6d07 style player area on game screen 2020-02-05 16:44:37 -08:00
Sorrel Bri
0e5c18907d stub render board state from make_move 2020-02-05 16:44:37 -08:00
Sorrel Bri
485771b8f2 stub make move socket message to add move to game 2020-02-05 16:44:37 -08:00
Sorrel Bri
293a574d2b refactor make move to serve game meta data with game record 2020-02-05 16:44:37 -08:00
Sorrel Bri
167fee8175 check legality of move prior to posting 2020-02-05 16:44:37 -08:00
Sorrel Bri
ad8a3eaff2 stub make move to game service 2020-02-05 16:44:37 -08:00
Sorrel Bri
5981daf86a stub game services to store active games 2020-02-05 16:44:37 -08:00
Sorrel Bri
cb56a98d27 stub board on game page 2020-02-05 16:44:37 -08:00
Sorrel Bri
607a4e13bf stub Game components 2020-02-05 16:44:37 -08:00
Sorrel Bri
e870d45f90 add seed moves 2020-02-05 16:44:37 -08:00
Sorrel Bri
1d8cabf5ee stub game connection via socket room 2020-02-05 16:44:37 -08:00
Sorrel Bri
857e9e0fd5 stub game connection via socket room 2020-02-05 16:44:37 -08:00
Sorrel Bri
1f89dbc481 patch to cleanup reducer directory filenames 2020-02-05 16:44:36 -08:00
Sorrel Bri
ba8a89ee6a stub default falsey values for initState function to prevent crash on 500 2020-02-05 16:44:36 -08:00
Sorrel Bri
025aee43c8 create Loading component with pinwheel ko animation 2020-02-05 16:44:36 -08:00
Sorrel Bri
261b5c5bbe add table styling to game buttons in game room 2020-02-05 16:44:36 -08:00
Sorrel Bri
ebb7ceb466 refactor all jsx to BEM 2020-02-05 16:44:36 -08:00
Sorrel Bri
79daaf1461 debug room socket connect dispatch 2020-02-05 16:44:36 -08:00
Sorrel Bri
e2537df697 refactor sockets to be launched with namespace by components 2020-02-05 16:44:36 -08:00
Sorrel Bri
0b78c78a0a refacor sockets on server and client to utilize dispatch for socket meessages 2020-02-05 16:44:36 -08:00
Sorrel Bri
f6b6134d5b stub socket connection to game id namespace 2020-02-05 16:44:36 -08:00
Sorrel Bri
67f0449963 stub socket connection to game id namespace 2020-02-05 16:44:36 -08:00
Sorrel Bri
5a2d5648e0 stub games/:id endpoint to join game socket room 2020-02-05 16:44:36 -08:00
Sorrel Bri
f0c0b9a0f6 refactor join_game_request to require unique users 2020-02-05 16:44:36 -08:00
Sorrel Bri
eeca5480ec connect join_game_request socket at client and server 2020-02-05 16:44:35 -08:00
Sorrel Bri
d882fe9bcf patch rooms/:id failure to return multiple games 2020-02-05 16:44:35 -08:00
Sorrel Bri
6aecd7d48e patch no-query bug in rooms/ endpoint 2020-02-05 16:44:35 -08:00
Sorrel Bri
523bec7446 refactor api rooms/:id endpoint to deliver current room without table join 2020-02-05 16:44:35 -08:00
Sorrel Bri
6eaf272d5d stub room display with messages and game link 2020-02-05 16:44:35 -08:00
Sorrel Bri
3ad0c9da52 dispatch all room data to state upon rooms/:id 2020-02-05 16:44:35 -08:00
Sorrel Bri
a33fea6ba6 refactor api room endpoint to return unjoined game room data 2020-02-05 16:44:35 -08:00
Sorrel Bri
41d64135e5 add SET_MESSAGES to reducer 2020-02-05 16:44:35 -08:00
Sorrel Bri
ef165b0cff refactor services and reducers to parse JSON before data hits dispatch 2020-02-05 16:44:35 -08:00
Sorrel Bri
55b1a9bce0 add client routing to rooms/:id, move socket(rooms/roomId) connect from Home page to Room page 2020-02-05 16:44:35 -08:00
Sorrel Bri
63a9233b15 serve room with message data from api/v1/rooms/:id 2020-02-05 16:44:35 -08:00
Sorrel Bri
c992bf4b4f serve room with joined game data from api/v1/rooms/:id 2020-02-05 16:44:35 -08:00
Sorrel Bri
6c0d1fbc7c stub room socket connection (client + server) 2020-02-05 16:44:34 -08:00
Sorrel Bri
ebb23863dd add message table with migration 2020-02-05 16:44:34 -08:00
Sorrel Bri
0f507ef316 add move table with migration 2020-02-05 16:44:34 -08:00
Sorrel Bri
51bd3fb832 add game table with seed and migration 2020-02-05 16:44:34 -08:00
Sorrel Bri
76cfbf54c3 add time_setting table with seed and migration 2020-02-05 16:44:34 -08:00
Sorrel Bri
d6c850cae1 patch remove unnecessary socket.io cookie 2020-02-05 16:44:34 -08:00
Sorrel Bri
e1e7768c08 Merge branch 'gameroom_endpoint' 2020-02-05 16:44:34 -08:00
Sorrel Bri
a8750afa7e patch https cookies in production 2020-02-05 16:44:34 -08:00
Sorrel Bri
65bbeb71dd patch https cookies in production 2020-02-05 16:44:34 -08:00
Sorrel Bri
a5206c965c hook SET_ROOMS into rooms Service 2020-02-05 16:44:34 -08:00
Sorrel Bri
1b7f802013 add SET_ROOMS dispatch 2020-02-05 16:44:34 -08:00
Sorrel Bri
d81be0b595 serve all public rooms at rooms index 2020-02-05 16:44:34 -08:00
Sorrel Bri
a6105973f3 stub rooms index route and controller 2020-02-05 16:44:34 -08:00
Sorrel Bri
1cd1dc87a9 add room migration and simple seeds 2020-02-05 16:44:33 -08:00
Sorrel Bri
43556e97aa serve basic page at api endpoint to redirect user 2020-02-05 16:44:33 -08:00
Sorrel Bri
e1e45f679b patch component references in pages/ 2020-02-05 16:44:33 -08:00
Sorrel Bri
8622b5747f patch reference to MainWrapper component 2020-02-05 16:44:33 -08:00
Sorrel Bri
ba3fb61f8b rename RoomArchive components to differentiate from NewsArchive 2020-02-05 16:44:33 -08:00
Sorrel Bri
59a1ade90a stub home and rooms sidebar components 2020-02-05 16:44:33 -08:00
Sorrel Bri
575cf4a77a patch to hide password input on login form 2020-02-05 16:44:33 -08:00
Sorrel Bri
e0bc32078b patch frontend api endpoint in config 2020-02-05 16:44:33 -08:00
Sorrel Bri
63b95b0604 add manual set Access Control Allow Origin header 2020-02-05 16:44:33 -08:00
Sorrel Bri
4960a5f60d patch CORS 2020-02-05 16:44:33 -08:00
Sorrel Bri
23daa25ca9 patch config for production 2020-02-05 16:44:33 -08:00
Sorrel Bri
ffef145527 patch config for production 2020-02-05 16:44:33 -08:00
Sorrel Bri
78ad0b18ec add login hook to frontend 2020-02-05 16:44:33 -08:00
Sorrel Bri
2a4d48d26c add validation for username and email on signup 2020-02-05 16:44:33 -08:00
Sorrel Bri
d04656762e add client side password confirmation check 2020-02-05 16:44:32 -08:00
Sorrel Bri
9837814edb refactor auth and api/index to ensure token verified and sent to dispatch ADD_USER 2020-02-05 16:44:32 -08:00
Sorrel Bri
d10774c161 refactor auth and api/index to ensure token verified and sent to dispatch ADD_USER 2020-02-05 16:44:32 -08:00
Sorrel Bri
ff2e1e82b2 refactor to fetch to ensure proper cookie storage 2020-02-05 16:44:32 -08:00
Sorrel Bri
ca6773c18d serve user from verified jwt 2020-02-05 16:44:32 -08:00
Sorrel Bri
ad26f1af3a add FormError component to display auth errors 2020-02-05 16:44:32 -08:00
Sorrel Bri
0131183237 hook reducer into signup post response 2020-02-05 16:44:32 -08:00
Sorrel Bri
44636cf4f5 patch server production env allowed origin 2020-02-05 16:44:32 -08:00
Sorrel Bri
0ba2e2acdc patch signup post for existing user to return 409 2020-02-05 16:44:32 -08:00
Sorrel Bri
918b2ac5cb hook reducer into auth/signup request service 2020-02-05 16:44:32 -08:00
Sorrel Bri
285d9b7a46 stub styling of side and main content 2020-02-05 16:44:32 -08:00
Sorrel Bri
16c10d9038 stub sidebar component to display auth form 2020-02-05 16:44:31 -08:00
Sorrel Bri
3f2417dd4d stub tests for page components 2020-02-05 16:44:31 -08:00
Sorrel Bri
86b23bdf44 debug password hashing function 2020-02-05 16:44:31 -08:00
Sorrel Bri
a7f1a16ba2 stub frontend requests to auth endpoints 2020-02-05 16:44:31 -08:00
Sorrel Bri
923879e249 add validation and sanitization for auth/. posts 2020-02-05 16:44:31 -08:00
Sorrel Bri
a5bee4129b patch to remove timeout from login test 2020-02-05 16:44:31 -08:00
Sorrel Bri
68ae8615f3 add login verification of user 2020-02-05 16:44:31 -08:00
Sorrel Bri
4f5c9e11a3 patch knexfile name to run migrations 2020-02-05 16:44:31 -08:00
Sorrel Bri
73ed98622c add password hash to new user 2020-02-05 16:44:31 -08:00
Sorrel Bri
e7c2bf38cf stub new user sign up 2020-02-05 16:44:31 -08:00
Sorrel Bri
f26b8ece56 add sign jwt function and hook to auth/signup 2020-02-05 16:44:31 -08:00
Sorrel Bri
6fef68d9ba stub auth routes and controllers 2020-02-05 16:44:31 -08:00
Sorrel Bri
af01d85945 debug migrations path 2020-02-05 16:44:30 -08:00
Sorrel Bri
4aed7bbd81 debug produciton db connection 2020-02-05 16:44:30 -08:00
Sorrel Bri
c59f7df174 add migrate command to server Procfile 2020-02-05 16:44:30 -08:00
Sorrel Bri
83633509c2 add create user table migration 2020-02-05 16:44:30 -08:00
Sorrel Bri
5c747139be deploy subdirectories successfully 2020-02-05 16:44:30 -08:00
Sorrel Bri
ef5ca1f2dd return README to root directory 2020-02-05 16:44:30 -08:00
Sorrel Bri
148808979b move react module into subdirectory 2020-02-05 16:44:30 -08:00
Sorrel Bri
c056770a70 confirm successful deployment 2020-02-05 16:44:30 -08:00
Sorrel Bri
3e10f1a03c add runtime env for production enironment 2020-02-05 16:44:30 -08:00
Sorrel Bri
8912db80d7 add production endpoints to react config 2020-02-05 16:44:30 -08:00
Sorrel Bri
dbfe5c13d0 change server Procfile to npm start 2020-02-05 16:44:30 -08:00
Sorrel Bri
cbbacc0ada remove path from server Procfile 2020-02-05 16:44:30 -08:00
Sorrel Bri
ffff70229a add path to server Procfile 2020-02-05 16:44:30 -08:00
Sorrel Bri
0c433d54df add node to server Procfile 2020-02-05 16:44:29 -08:00
Sorrel Bri
8813b72ad2 empty react Procfile 2020-02-05 16:44:29 -08:00
Sorrel Bri
cb8a308872 add run to Procfile 2020-02-05 16:44:29 -08:00
Sorrel Bri
83bd12b222 remove npm from start command 2020-02-05 16:44:29 -08:00
Sorrel Bri
c0d96ffdc8 redeploy with namespaced scripts 2020-02-05 16:44:29 -08:00
Sorrel Bri
06d1b3c63b add Procfiles for deploy 2020-02-05 16:44:29 -08:00
Sorrel Bri
cbaae4fd2c config flow 2020-02-05 16:44:29 -08:00
Sorrel Bri
6486176d8f patch page function tests, import pages in App 2020-02-05 16:44:29 -08:00
Sorrel Bri
8e94b6d83c stub page components 2020-02-05 16:44:29 -08:00
Sorrel Bri
c0be13db8e stub mocha/chai for testing server 2020-02-05 16:44:29 -08:00
Sorrel Bri
8416a83757 stub react pages structure 2020-02-05 16:44:29 -08:00
Sorrel Bri
30eca7029d stub middleware (including socket), controllers architecture 2020-02-05 16:44:29 -08:00
Sorrel Bri
fb30588566 connect socket 2020-02-05 16:44:29 -08:00
Sorrel Bri
6171fa85c5 connect socket 2020-02-05 16:44:29 -08:00
Sorrel Bri
c14a76e996 connect to db with knex 2020-02-05 16:44:28 -08:00
Sorrel Bri
bbdc63f61c restrict CORS to env defined origin 2020-02-05 16:44:28 -08:00
Sorrel Bri
ae0ee5e7ef configure simple CORS 2020-02-05 16:44:28 -08:00
Sorrel Bri
f17911f852 stub basic connection 2020-02-05 16:44:28 -08:00
Sorrel Bri
c8f7a7097c add react frontend structure 2020-02-05 16:44:28 -08:00
Sorrel Bri
5cb00b90f6 remove views/, add controllers/ 2020-02-05 16:44:28 -08:00
Sorrel Bri
ebedfae532 git init 2020-02-05 16:44:28 -08:00