Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes: #359 #360

Open
wants to merge 242 commits into
base: hkirat/base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
242 commits
Select commit Hold shift + click to select a range
111a0bb
Create README.md
hkirat Apr 13, 2024
c87e72b
Update README.md
hkirat Apr 13, 2024
18728fa
Merge branch 'code100x:main' into main
Airbornharsh Apr 18, 2024
6a212b2
feat(create-turbo): create basic
turbobot-temp Apr 19, 2024
70ec162
feat(create-turbo): apply official-starter transform
turbobot-temp Apr 19, 2024
58edd9c
feat(create-turbo): apply package-manager transform
turbobot-temp Apr 19, 2024
cf43eec
monorepoify
hkirat Apr 19, 2024
2d2d0a2
Updated readme
hkirat Apr 19, 2024
ad8de74
lint
hkirat Apr 19, 2024
4f96907
seprated db and tailwind config in package
vishalmishraa Apr 19, 2024
2bd7730
Update import paths for db in Game.ts and GameManager.ts
vishalmishraa Apr 19, 2024
e7eac47
add move log in fe
guruharsha1 Apr 19, 2024
6c6c744
Create MovesTable.tsx
guruharsha1 Apr 19, 2024
bda7389
Merge branch 'code100x:main' into main
Airbornharsh Apr 19, 2024
756f458
removed frontend and backend
Airbornharsh Apr 19, 2024
4417b39
Update package.json for @repo/db package
vishalmishraa Apr 19, 2024
8893dbd
Update package.json for @repo/db package
vishalmishraa Apr 19, 2024
90cb17d
auth with an passport.js
Apr 19, 2024
87c864a
added the jwt and fixed some bug
Apr 19, 2024
6c06a3e
Merge pull request #43 from TanmayDhobale/auth
hkirat Apr 19, 2024
bbabfb5
Merge pull request #41 from vishalmishraa/main
hkirat Apr 19, 2024
8cdc65c
Updated auth, passport
hkirat Apr 19, 2024
b119550
Adds auth to ws layer
hkirat Apr 19, 2024
8b97784
Merge branch 'code100x:main' into main
Airbornharsh Apr 19, 2024
0f3b0e4
Added names on the frontend
hkirat Apr 19, 2024
ff6531c
Merge branch 'code100x:main' into main
Airbornharsh Apr 19, 2024
91a9db3
Added game end logic
hkirat Apr 19, 2024
c73d87e
Merge pull request #42 from guruharsha1/main
hkirat Apr 19, 2024
eefcc96
Merge commit 'c73d87e34d6bdc474c07aeb6ebc5d5f8af088d51'
Airbornharsh Apr 19, 2024
042bc31
Added moves table
hkirat Apr 19, 2024
593da61
imporve user interface
ofcljaved Apr 19, 2024
3280a65
Merge branch 'code100x:main' into main
Airbornharsh Apr 19, 2024
73711b8
chore: imporve button hover
ofcljaved Apr 19, 2024
9b5fc9a
added logic for moves
Airbornharsh Apr 19, 2024
6ee72e2
Added logic to show moves, dont send moves
hkirat Apr 19, 2024
6112312
Merge branch 'code100x:main' into main
Airbornharsh Apr 19, 2024
34fb87e
Merge commit '6112312d49853bcf75c490c58a8bbfe4ff563aae' into legal_move
Airbornharsh Apr 19, 2024
c1693b3
Added Design
Airbornharsh Apr 19, 2024
3aa964e
Updates
hkirat Apr 19, 2024
56aeb39
Merge branch 'code100x:main' into main
Airbornharsh Apr 19, 2024
6ae66a5
Merge commit '56aeb39238e2ded214d5ae933141fffa0a08d4db' into legal_move
Airbornharsh Apr 19, 2024
ef522e3
Merge commit '56aeb39238e2ded214d5ae933141fffa0a08d4db' into move-tab…
Airbornharsh Apr 19, 2024
e2750f9
Merge pull request #67 from ofcljaved/feat/improve-ui
hkirat Apr 19, 2024
2509d3f
Merge pull request #68 from Airbornharsh/legal_move
hkirat Apr 19, 2024
b98c4bf
Merge pull request #71 from Airbornharsh/move-table-view
hkirat Apr 19, 2024
454a341
Removed ui log
hkirat Apr 19, 2024
39da776
chore: mobile responsive and work on many devices
ofcljaved Apr 19, 2024
c392443
Added Timer in Backend if a user timeout for more than 60sec
Airbornharsh Apr 19, 2024
6853de7
Adds chess logic
hkirat Apr 19, 2024
a9ff7b7
Merge commit '6853de76a0dd943f46cd5968c35377da2d452731' into timer
Airbornharsh Apr 19, 2024
e9b70c2
added row columns label
vishalmishraa Apr 19, 2024
a993e37
Added the User Timout in Frontend
Airbornharsh Apr 19, 2024
9cbf518
Imported the Variable
Airbornharsh Apr 19, 2024
c193ea9
Confirm Resubmission alert on reload
nischal-shetty2 Apr 19, 2024
a43621d
Merge pull request #87 from nischal-shetty2/feat/ConfirmResubmission
hkirat Apr 19, 2024
416ca24
Merge pull request #84 from vishalmishraa/main
hkirat Apr 19, 2024
4db7e99
Add sound effect for chess moves
vishalmishraa Apr 19, 2024
8002ae5
Merge branch 'code100x:main' into main
vishalmishraa Apr 19, 2024
f09db5b
Updated
Airbornharsh Apr 19, 2024
34a047c
Merge pull request #78 from ofcljaved/fix/improve-ui
hkirat Apr 19, 2024
e206943
Removed the Check
Airbornharsh Apr 19, 2024
b653951
Disabling the Chess Board from the UI
Airbornharsh Apr 19, 2024
9cfceef
Added overflow logic
Airbornharsh Apr 19, 2024
070a929
Added Logic in backend
Airbornharsh Apr 19, 2024
c0f9351
Added alert in Frontend
Airbornharsh Apr 19, 2024
291846e
Alert and Disabling the play button
Airbornharsh Apr 19, 2024
3a05582
Updated the Code
Airbornharsh Apr 19, 2024
9ea5296
Added Start Check
Airbornharsh Apr 19, 2024
cece71a
ts fixes and added .env
nimit9 Apr 19, 2024
a95f4ab
added flipped board to ChessBoard
nimit9 Apr 19, 2024
1ec2235
added legal moves logic
nimit9 Apr 19, 2024
12c3e9b
changed board UI
nimit9 Apr 20, 2024
f46afda
fix: increase session time
ofcljaved Apr 20, 2024
2e42cbb
some UI changes
nimit9 Apr 20, 2024
bd11199
code refactoring
nimit9 Apr 20, 2024
57c7a72
Merge branch 'code100x:main' into main
vishalmishraa Apr 20, 2024
640bb76
Modified the scripts of packages db and turbojson so that before dev …
abhayymishraa Apr 20, 2024
41082b3
Added Prisma dev command to generate it form the root folder
Airbornharsh Apr 20, 2024
0e6e086
Added Prettier for no design Conflicts
Airbornharsh Apr 20, 2024
3ae5063
highlight latest move
nimit9 Apr 20, 2024
1be7be2
React native frontend added
sarthak-simplifii Apr 20, 2024
031efa3
added drawing arrows and selecting squares using right click
nimit9 Apr 20, 2024
ab9e500
Merge pull request #91 from vishalmishraa/main
hkirat Apr 20, 2024
f1e51e4
Merge pull request #94 from Airbornharsh/move-table-overflow
hkirat Apr 20, 2024
064bf60
Merge branch 'main' into same-user-game
hkirat Apr 20, 2024
9fad378
Merge pull request #96 from Airbornharsh/same-user-game
hkirat Apr 20, 2024
faf646d
Merge branch 'main' into chess-ui
hkirat Apr 20, 2024
80633d8
Merge pull request #98 from nimit9/chess-ui
hkirat Apr 20, 2024
0d5fb65
Update ChessBoard.tsx
ssk090 Apr 20, 2024
273ff8c
Merge pull request #114 from abhayymishraa/issue-111-fix
hkirat Apr 20, 2024
8d5c72a
Merge pull request #131 from ssk090/patch-1
hkirat Apr 20, 2024
d03d23f
Merge pull request #113 from Airbornharsh/prettier-prisma
hkirat Apr 20, 2024
730df7d
Merge branch 'main' into fix/session
hkirat Apr 20, 2024
abe7b5c
Merge pull request #101 from ofcljaved/fix/session
hkirat Apr 20, 2024
07ab896
Merge branch 'main' into main
hkirat Apr 20, 2024
36ac5bf
Merge pull request #116 from marssarthak/main
hkirat Apr 20, 2024
85bfddc
Add husky, esline, prettier, pre commit hooks
Apr 20, 2024
0e5bc85
Merge branch 'main' into t1
TanmayDhobale Apr 20, 2024
db0e7c2
Updated UI
hkirat Apr 20, 2024
54ba4ce
Fixed canvas
hkirat Apr 20, 2024
1f81ea7
Title Chenged
usama-rahman Apr 20, 2024
6f26d2c
feat: Add confetti when win
ssk090 Apr 20, 2024
c1d4f33
Merge commit '54ba4ce5ce4b49284cd48402636cb5d4b62a278d' into timer
Airbornharsh Apr 20, 2024
cb6709b
feat: Add move and capture sound
ssk090 Apr 20, 2024
a10a810
Updated the UI
Airbornharsh Apr 20, 2024
7dc5d19
Backend Logic for timer
Airbornharsh Apr 20, 2024
9ca3894
Reflect time in Frontend
Airbornharsh Apr 21, 2024
a8f4b5e
Merge pull request #147 from ssk090/add-move-capture-sound
hkirat Apr 21, 2024
c3c76b1
Added Turns and TImer
Airbornharsh Apr 21, 2024
000642c
Merge commit 'a8f4b5ef039ce16eab433845140fb4b48fcf5f09' into timer
Airbornharsh Apr 21, 2024
eb9f198
Wholesale lint
hkirat Apr 21, 2024
ce22e45
Removed the Logs
Airbornharsh Apr 21, 2024
2829c80
Removed the saved Changes
Airbornharsh Apr 21, 2024
d4bf9ac
Merge pull request #144 from usama-rahman/main
hkirat Apr 21, 2024
89ae9f4
Updated db if time over then game Over
Airbornharsh Apr 21, 2024
8b2ea69
FEAT: updated landing page design
manish591 Apr 21, 2024
b8a42c2
Merge commit 'd4bf9acd297ffbf7f5f031d8a2e8ce7d38d4b06a' into timer
Airbornharsh Apr 21, 2024
e80efc5
Merge branch 'main' into feat/update-landing-page
manish591 Apr 21, 2024
0a88582
Fixed a typo
csummers27 Apr 21, 2024
5ec2b2b
Add king check highlighting feature
Sama-004 Apr 21, 2024
2bd6798
Merge branch 'main' into add-confetti-when-win
ssk090 Apr 21, 2024
f2f961c
chore: update ChessBoard.tsx
ssk090 Apr 21, 2024
2299ff3
fix: Correct the player names
ssk090 Apr 21, 2024
13f3a02
Update icon of the chess game
modamaan Apr 21, 2024
ffb9a7f
fix the db command
Moh1tsingh Apr 21, 2024
2599f12
Fix/ Deselects a piece when click on another
nischal-shetty2 Apr 21, 2024
e34835d
Made the SocketManager constructor private. [Update SocketManager.ts]
sagardxd Apr 21, 2024
fc21bdc
moves prettier
sanjeevs9 Apr 21, 2024
72f933a
Merge pull request #80 from Airbornharsh/timer
hkirat Apr 21, 2024
f8ef32d
Merge branch 'main' into fix/correct-player-name
ssk090 Apr 21, 2024
b04e9e8
Merge pull request #145 from ssk090/add-confetti-when-win
hkirat Apr 21, 2024
883865f
Merge pull request #150 from manish591/feat/update-landing-page
hkirat Apr 21, 2024
ae17b0f
Merge pull request #151 from csummers27/patch-1
hkirat Apr 21, 2024
ae32f72
Merge pull request #166 from modamaan/main
hkirat Apr 21, 2024
a443a50
Merge pull request #168 from Moh1tsingh/command-fix
hkirat Apr 21, 2024
6e4dea3
Merge pull request #161 from ssk090/fix/correct-player-name
hkirat Apr 21, 2024
6d7acdb
Merge pull request #173 from sagardxd/patch-2
hkirat Apr 21, 2024
0e16ea3
fix: Fixed the favicon
ssk090 Apr 21, 2024
5cc8d2b
Merge pull request #176 from sanjeevs9/movesbranch
hkirat Apr 21, 2024
ec2f106
Merge pull request #193 from ssk090/fix/favicon
hkirat Apr 21, 2024
ff51ff0
Updated logic to do time, timeouts
hkirat Apr 22, 2024
5ae05c0
Fixed merge conflicts
hkirat Apr 22, 2024
e2ad6ce
Fixed timer logic
hkirat Apr 22, 2024
482b2e3
made changes
Apr 22, 2024
bac9666
made changes
Apr 22, 2024
d21dd7c
Merge branch 'main' into t1
TanmayDhobale Apr 22, 2024
3dc615d
Merge branch 'code100x:main' into fix/deselect_piece
nischal-shetty2 Apr 22, 2024
6bd9f3a
Initialized shadcn
skushagra9 Apr 22, 2024
18c6f4f
add conditional before running function
Sama-004 Apr 22, 2024
6d3dfd2
remove console.log
Sama-004 Apr 22, 2024
ae5aa86
update square logic
Sama-004 Apr 22, 2024
7a1a69f
Changed Frontend , Added Reusable Components
skushagra9 Apr 22, 2024
1a8e704
minor fixes
skushagra9 Apr 22, 2024
d30d6d1
color update
Sama-004 Apr 22, 2024
0c14a48
removed extra call to chess.get
Sama-004 Apr 22, 2024
98704b9
fixed ws problems and allowing going back to a move in a live game
nimit9 Apr 22, 2024
5b027a3
merge main to feat branch
nimit9 Apr 22, 2024
731b102
Merge branch 'main' of github.com:nimit9/chess into feat/chess-moves-ui
nimit9 Apr 22, 2024
90754af
fixed square's and notations colors
nimit9 Apr 22, 2024
648b850
button to flip the board
nimit9 Apr 22, 2024
302aba9
Fixed valid Move bug
nischal-shetty2 Apr 23, 2024
e51b13c
Merge pull request #152 from Sama-004/main
hkirat Apr 25, 2024
0e38f37
Merge branch 'main' of github.com:nimit9/chess into feat/chess-moves-ui
nimit9 Apr 26, 2024
1742196
removed package-lock
nimit9 Apr 26, 2024
9eda890
github api call
Airbornharsh Apr 28, 2024
f304447
Merge pull request #204 from skushagra9/new
hkirat Apr 30, 2024
e80af1e
Fixed design
hkirat Apr 30, 2024
3140a7f
Dont redirect on signin
hkirat Apr 30, 2024
de954a4
Merge pull request #256 from Airbornharsh/github-providers
hkirat Apr 30, 2024
19d0f5f
Fixed login, redirects
hkirat Apr 30, 2024
93fd358
Merge branch 'main' of github.com:code100x/chess
hkirat Apr 30, 2024
eca74dc
Merge branch 'main' of github.com:nimit9/chess into feat/chess-moves-ui
nimit9 Apr 30, 2024
bd43fcb
Merge pull request #172 from nischal-shetty2/fix/deselect_piece
hkirat Apr 30, 2024
31c1f23
Merge branches 'feat/chess-moves-ui' and 'main' of github.com:nimit9/…
nimit9 Apr 30, 2024
4d9e659
pointer + reusable comp
skushagra9 Apr 30, 2024
35a689d
Merge pull request #223 from nimit9/feat/chess-moves-ui
hkirat Apr 30, 2024
f6214c9
sidebar cleaner
skushagra9 Apr 30, 2024
3c2b60e
dynamic sidebar
skushagra9 Apr 30, 2024
fec9dd0
added logout button
skushagra9 Apr 30, 2024
4020739
fixed public error
nischal-shetty2 May 1, 2024
8c3b0d5
added @ for the path
nischal-shetty2 May 1, 2024
9334d6a
improves playCard UI
adi790uu May 1, 2024
bbbecd2
removed some unnecessary changes
adi790uu May 1, 2024
d769d59
fixed github login
Srijan-t0d0 May 1, 2024
62c9ddb
fixed bug: using primary email
Srijan-t0d0 May 1, 2024
a6ee445
removed package-lock.json files
adi790uu May 1, 2024
0f3e8d0
shifted assets to public folder
adi790uu May 1, 2024
e97667a
feat: Popup to display Game Result
Ruchir28 May 2, 2024
830101c
fix: Game Status becomes Abandoned eventually
Ruchir28 May 2, 2024
0631b51
chore: updating margins
Ruchir28 May 2, 2024
a481266
refactor: Game End Modal Compoenet
Ruchir28 May 2, 2024
7083a95
Merge pull request #285 from Srijan-t0d0/main
hkirat May 3, 2024
0e99807
Merge pull request #269 from skushagra9/design-fix
hkirat May 3, 2024
1fe8678
Merge pull request #287 from Ruchir28/main
hkirat May 3, 2024
184b8f2
fixed merge
nischal-shetty2 May 3, 2024
e4b8bd5
Merge branch 'code100x:main' into fix/public_error
nischal-shetty2 May 3, 2024
467b453
Fixed Game
hkirat May 5, 2024
172f920
Added setup procedure
hkirat May 5, 2024
632a0df
removed ui log
hkirat May 5, 2024
3581cf2
removed package-lock.json files from root and other dirs
adi790uu May 5, 2024
cc4bf8a
added package-lock.json files in each folder
adi790uu May 5, 2024
6efcaad
updated yarn.lock with latest changes from main
adi790uu May 5, 2024
2fa139d
merged latest changes from main and updated structure of PlayCard
adi790uu May 5, 2024
06faf57
trying to fix yarn.lock
adi790uu May 5, 2024
5650416
Fixed #268
hkirat May 6, 2024
8d785da
fixed logout
hkirat May 6, 2024
df0a3c2
Merge pull request #280 from nischal-shetty2/fix/public_error
hkirat May 6, 2024
e8dd899
Merge pull request #282 from adi790uu/playCard-ui-changes
hkirat May 6, 2024
a7108c3
modify JOIN_ROOM message type
VK-RED May 6, 2024
81466da
Create ShareGame Component
VK-RED May 6, 2024
b7d9e24
Add utility class to hide scrollbar
VK-RED May 6, 2024
a6c5972
Add ShareGame component
VK-RED May 6, 2024
b7cab6b
Feat : Added UI for waiting opponent
Vijaykv5 May 7, 2024
43faeaa
fix facebook login
AuenKr May 8, 2024
0a77a03
completely remove facebook
AuenKr May 8, 2024
5d524ae
Delete package-lock.json
TanmayDhobale May 9, 2024
4863904
Merge branch 'main' into t1
TanmayDhobale May 9, 2024
c218064
Merge pull request #300 from Vijaykv5/fix/waiting-opponent-ui
hkirat May 12, 2024
9a66faa
Merge main branch
VK-RED May 25, 2024
4d018e1
Merge pull request #308 from AuenKr/fix-facebook-login
hkirat Jun 2, 2024
27bcb78
added assets
manish591 Jun 10, 2024
1877f84
added themes styles and data
manish591 Jun 10, 2024
530c37c
styled loader
manish591 Jun 10, 2024
124e5cc
added theme context
manish591 Jun 10, 2024
88c44c0
updated design, landing page,themes style added
manish591 Jun 10, 2024
ba680d2
Merge branch 'main' into feat/added-themes
manish591 Jun 10, 2024
67ed606
chore: refactoring the implementation of singleton pattern for socket…
Jun 12, 2024
72423ac
Merge pull request #354 from aadeshkulkarni/chore/socket-singleton
siinghd Jun 15, 2024
ea5e303
Merge pull request #352 from manish591/feat/added-themes
siinghd Jun 17, 2024
a63fccb
fix: merge conflicts
VK-RED Jun 18, 2024
2415016
fix: socket manager instance
VK-RED Jun 18, 2024
74aaf2d
fix: avoid utilizing useState for url
VK-RED Jun 18, 2024
ff4d5fc
Add backend logic
giripatel Jun 18, 2024
c1cf8a2
Add alert dialog & ExitGameModel
giripatel Jun 18, 2024
80c6fff
Add frontend logic
giripatel Jun 18, 2024
5ce256d
Add Player Exit in won by
giripatel Jun 18, 2024
80464c0
Merge pull request #296 from VK-RED/feature-share-game-link
siinghd Jun 18, 2024
0c19cf3
Review 1 edit
giripatel Jun 19, 2024
57d6609
Clear conflicts
giripatel Jun 19, 2024
6be6745
Merge pull request #356 from giripatel/Feat/Add_Exit_Game
siinghd Jun 19, 2024
0dadc3a
Merge branch 'main' into t1
TanmayDhobale Jun 23, 2024
84cfdb5
Merge pull request #140 from TanmayDhobale/t1
siinghd Jun 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"type-enum": [2, "always", ["ci", "chore", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "assets"]]
}
}
13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// .eslintrc.js
module.exports = {
extends: ["@repo/eslint-config/library.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
},
rules: {
"no-unused-vars": "off",
"no-redeclare": "off",
"turbo/no-undeclared-env-vars": "off",
}
};
File renamed without changes.
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Dependencies
node_modules
.pnp
.pnp.js

# Local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Testing
coverage

# Turbo
.turbo

# Vercel
.vercel

# Build Outputs
.next/
out/
build
dist


# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Misc
.DS_Store
*.pem
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged --allow-empty &&
npm run lint && npm run format
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"**/*.{ts,tsx,json}": ["prettier --write"]
}
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules

build

dist

.turbo


10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"singleQuote": true,
"printWidth":120,
"bracketSpacing": true,
"tabWidth": 2,
"trailingComma": "es5",
"semi": true

}

37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## Chess

Building a platform where people can

1. Sign up
2. Create a new match/get connected to an existing match
3. During the match, let users play moves
4. Have a rating system that goes up and down similar to standard chess rating

## Tech stack

Let's keep it simple

1. React for Frontend
2. Node.js for Backend
3. Typescript as the language
4. Separate Websocket servers for handling real time games
5. Redis for storing all moves of a game in a queue

## Setting it up locally

- Clone the repo
- Copy over .env.example over to .env everywhere
- Update .env
- Postgres DB Credentials
- Github/Google Auth credentials
- npm install
- Start ws server
- cd apps/ws
- npm run dev
- Start Backend
- cd apps/backend
- npm run dev
- Start frontend
- cd apps/frontend
- npm run dev

8 changes: 8 additions & 0 deletions apps/backend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret

ALLOWED_HOSTS="http://localhost:5173,https://example.com"

AUTH_REDIRECT_URL="http://localhost:5173/game/random"
6 changes: 6 additions & 0 deletions apps/backend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: ["../../.eslintrc.js"],
parserOptions: {
project: "./tsconfig.json",
},
};
2 changes: 1 addition & 1 deletion backend1/.gitignore → apps/backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
dist
node_modules
Loading