Commit Graph

75 Commits

Author SHA1 Message Date
Moon Patel eb80309f27 docker-compose.yml added 2023-09-19 00:36:36 +05:30
Moon Patel a42a7d0e75 dockerize backend 2023-09-18 21:58:47 +05:30
Moon Patel f318d426ee dockerizing frontend 2023-09-18 12:51:56 +05:30
Moon Patel 164da1ffee corrected cors origin 2023-09-14 00:13:08 +05:30
Moon Patel 4cca4b6527 changes added 2023-09-13 18:36:46 +05:30
Moon Patel 6d21475e20 cors origin 2023-09-13 18:35:36 +05:30
Moon Patel 2848cb213c changes 2023-09-13 18:31:34 +05:30
Moon Patel 7b1503d384 some changs 2023-09-13 14:28:58 +05:30
Moon Patel 0bd078438f health check route added 2023-09-13 13:50:15 +05:30
Moon Patel cf4670582d Handle error in challenge action 2023-07-30 20:02:30 +05:30
Moon Patel e98c50d25d fixed stale state closure bug by using useRef() in ChessGameContextProvider 2023-07-28 04:24:16 +05:30
Moon Patel 95fb999747 tests setup 2023-07-26 18:43:26 +05:30
Moon Patel b3b99a340a fixed eslint errors 2023-07-25 20:09:03 +05:30
Moon Patel 13fd73776d prop types added 2023-07-25 19:59:51 +05:30
Moon Patel d71444a6e5 import refactoring 2023-07-25 19:46:04 +05:30
Moon Patel bd13e2b129 bug fixes 2023-07-25 18:52:36 +05:30
Moon Patel f86846004f fixed: Friends list not shown in settings page 2023-07-23 19:04:49 +05:30
Moon Patel 156d4e6f2c Authentication UX improved. 2023-07-23 18:46:31 +05:30
Moon Patel d1a941319c Merge branch 'main' of https://github.com/moonpatel/ChessHub 2023-07-23 17:56:37 +05:30
Moon Patel 46be9f244e assets restructuring . 2023-07-23 13:58:22 +05:30
Moon Patel 336259421a new:MainLoader component added 2023-07-23 13:53:46 +05:30
Moon Patel bf51745afe Authentication component changed to adapt new changes in
authentication APIs
New packages added:
-> zod - to add validation logic
-> react-hook-form - handle form state
2023-07-23 13:24:55 +05:30
Moon Patel 81ff9e31a0 Authentication logic changed
JWT is now stored in cookie instead of localStorage
changed APIs:
-> /api/auth/login
-> /api/auth/signup
new APIs:
-> /api/auth/logout
2023-07-23 13:20:55 +05:30
Moon Patel 38e7fa47a2 Create README.md 2023-07-15 16:44:34 +05:30
Moon Patel b2af52f2c6 .env.example added 2023-07-15 16:43:37 +05:30
Moon Patel 78a3187e9a feature: Profile page update user info 2023-07-14 19:53:58 +05:30
Moon Patel e8775ff8e1 feature: Add Friends
Now other user can be added as friends in Settings > Friends
2023-07-13 23:12:01 +05:30
Moon Patel 03fd3a0692 changed: chessboard background color saturation 2023-07-12 19:01:30 +05:30
Moon Patel 86041aef9d changed: Profile component in Settings 2023-07-12 18:52:12 +05:30
Moon Patel ceecac85dd Friends component in Settings page improved 2023-07-12 18:22:19 +05:30
Moon Patel 5c9dcb7533 changed: UI of GameHistory component and some minoor UI enhancements . 2023-07-12 18:19:52 +05:30
Moon Patel 892936c84c changed: background colors and colors changes in various places 2023-07-11 20:45:29 +05:30
Moon Patel 71e5c276e8 minor changes 2023-07-11 20:03:11 +05:30
Moon Patel 24cefafa87 removing console logs and some improvements 2023-07-08 02:21:20 +05:30
Moon Patel 136136cfb0 removed JoinChallenges.jsx 2023-07-08 02:10:51 +05:30
Moon Patel 8f39b29377 New feature added: Games automatically saved in database after game
ends in pgn format
2023-07-07 19:10:48 +05:30
Moon Patel 0abd8e0660 hardcoded email id moved to .env file 2023-07-06 23:51:36 +05:30
Moon Patel 5786795e58 Changes in this commit:
- New model added for games played
- Game model ref added to User model
- New APIs created to create and get games
2023-07-06 23:47:20 +05:30
Moon Patel 3f22a674e7 Implemented the challenge accept and decline buttons
TODO: Delete room when the challenged user declines the challenge
2023-07-06 23:07:15 +05:30
Moon Patel 882837448c New apis added and old apis improved 2023-07-06 19:28:19 +05:30
Moon Patel 189f35a232 Feature added: Exit the game when opponent resigns 2023-07-05 21:44:41 +05:30
Moon Patel 128e86ecb4 feature added: checkmate detection and ending game on checkmate 2023-07-05 21:25:28 +05:30
Moon Patel 313906eb5d Added timers but it is not stable for now 2023-07-05 18:28:16 +05:30
Moon Patel a7a1d08b46 Added a useCountDown hook to handle countdown 2023-07-05 16:14:11 +05:30
Moon Patel 5dbf0409f6 new API endpoint added
- DELETE /api/user/:username/challenges/:challengeID -> when user accepts or declines a challenge
2023-07-04 23:49:09 +05:30
Moon Patel 1e77891971 prevent user from making move when not in current state of game. 2023-07-04 20:03:43 +05:30
Moon Patel aa6e463b60 Game state persistency implemented. Game state is
now saved on page refresh.
The game state is stored on the server and when the user refreshes
the page the game state is fetched from the server on socket
re-connection

Next step:
stop user from making any move when the use is viewing past moves
2023-07-04 16:59:20 +05:30
Moon Patel 1d26cca8d8 Go back button and go ahead button implemented
TODO
- Improve the styiling of the GameHistory component
2023-07-04 03:52:19 +05:30
Moon Patel d8d0c95779 New feature added: While in the match the user can go back it time
to analyse previous moves.
2023-07-04 03:11:46 +05:30
Moon Patel 5f450e92fe Adding constants 2023-07-03 22:54:43 +05:30