Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
289 commits
Select commit Hold shift + click to select a range
dc2cf8b
fix: remove `systemctl` command
jerubrin Feb 5, 2023
747a142
feat: add copy to nginx folder
jerubrin Feb 5, 2023
01dcf0d
fix: autocopy files in wrong folder
jerubrin Feb 5, 2023
a983a71
feat: try to restart backend server
jerubrin Feb 5, 2023
93e9612
fix: try to fix systemctl with add sudo
jerubrin Feb 5, 2023
455a893
feat: final config
jerubrin Feb 5, 2023
cd14983
Merge pull request #9 from LoginovskyMax/ci-cd-dev
jerubrin Feb 5, 2023
71e7193
feat: add user logo
Feb 5, 2023
aaf43a0
Merge pull request #10 from LoginovskyMax/login
Kunitsa3 Feb 5, 2023
1c8870e
feat: add authorization and users database
jerubrin Feb 5, 2023
5482f74
docs: add BackEnd instructions
jerubrin Feb 5, 2023
1deee6f
Merge pull request #12 from LoginovskyMax/back-end-authorization
jerubrin Feb 6, 2023
ae7b98b
feat: add email base service
jerubrin Feb 6, 2023
721f7d0
feat:add preview
LoginovskyMax Feb 6, 2023
77ca6ac
fix:conflicts
LoginovskyMax Feb 6, 2023
c0d33b5
fix:merge with develop
LoginovskyMax Feb 6, 2023
c434f40
feat: add copy `.env` file - CD/CD
jerubrin Feb 6, 2023
76f0400
Merge pull request #13 from LoginovskyMax/add-preview
LoginovskyMax Feb 6, 2023
bb45004
feat: add e-mail password reset
jerubrin Feb 6, 2023
af3e109
feat: add delete user for admins
jerubrin Feb 6, 2023
b30dcf1
feat: generate new uuid url after every request
jerubrin Feb 6, 2023
6a2e573
docs: add new back-end functions
jerubrin Feb 6, 2023
826c81d
Merge branch 'develop' into back-end-authorization
jerubrin Feb 6, 2023
4864a35
Merge pull request #14 from LoginovskyMax/back-end-authorization
jerubrin Feb 6, 2023
6c48b60
fix: rename files
jerubrin Feb 6, 2023
cc263fe
Merge pull request #15 from LoginovskyMax/hot-fix-file-names
jerubrin Feb 6, 2023
c7d5f8d
Fix: send wrong password after reset
jerubrin Feb 7, 2023
e008678
fix: missing password
jerubrin Feb 7, 2023
c8cf206
Merge pull request #16 from LoginovskyMax/hot-fix-file-names
jerubrin Feb 7, 2023
d4a15aa
feat: add express-ws
jerubrin Feb 7, 2023
868e40f
feat: add game creating and field checker
jerubrin Feb 7, 2023
cb08ad0
feat:add page,field,click
LoginovskyMax Feb 7, 2023
63d646b
Merge pull request #17 from LoginovskyMax/seaBattle
LoginovskyMax Feb 8, 2023
3804397
feat: add SeaWar pre-logic
jerubrin Feb 8, 2023
6d09ba2
feat:add create game page, finish game logic
LoginovskyMax Feb 10, 2023
c3e6bdf
feat: add moves and winner features for "sea war" game
jerubrin Feb 11, 2023
f3d6dee
docs: add Sea War backend documentation
jerubrin Feb 11, 2023
ac66036
fix: document name
jerubrin Feb 11, 2023
0bcb130
Merge pull request #18 from LoginovskyMax/back-end-seawar
jerubrin Feb 11, 2023
5268de0
feat: add get current user by token
jerubrin Feb 11, 2023
7cbba1c
docs: add get current user documentation
jerubrin Feb 11, 2023
875daaf
feat: change user status
jerubrin Feb 11, 2023
e6e3937
feat: change method for `PUT`
jerubrin Feb 11, 2023
876b318
docs: add change status to docs
jerubrin Feb 11, 2023
1380e06
feat: add more space between paragraphs
jerubrin Feb 11, 2023
ca73f57
docs: edit text, fix little mistakes
jerubrin Feb 11, 2023
b6515c7
feat: add get user by userName for admins, add ban/unban function
jerubrin Feb 11, 2023
dc173bb
fix: es-lint errors
jerubrin Feb 11, 2023
a29498f
docs: add get user data, ban and unban to docs
jerubrin Feb 11, 2023
534a471
Merge pull request #19 from LoginovskyMax/back-end-authorization
jerubrin Feb 11, 2023
68f58c4
fix:change for backEnd
LoginovskyMax Feb 11, 2023
eb96fce
feat: add games list
jerubrin Feb 11, 2023
6ce1b84
docs: add games list documentation
jerubrin Feb 11, 2023
337f623
docs: add games list docs to different file
jerubrin Feb 11, 2023
1660808
feat: add image to game data
jerubrin Feb 11, 2023
07ff505
feat: add list of created games and heartbeat
jerubrin Feb 11, 2023
fb397a1
docs: add list of creating games
jerubrin Feb 11, 2023
cd270aa
Merge pull request #20 from LoginovskyMax/back-end-games
jerubrin Feb 11, 2023
33d18b7
docs: add links to headers
jerubrin Feb 11, 2023
c4e8db3
Merge pull request #21 from LoginovskyMax/back-end-games
jerubrin Feb 11, 2023
b23a7fc
fix: server crashed without authorization in SeaWar
jerubrin Feb 12, 2023
4a03516
feat: add capcha function
jerubrin Feb 12, 2023
4024f4d
feat: add comments and raiting
jerubrin Feb 12, 2023
ba123ed
fix:test token and user
LoginovskyMax Feb 12, 2023
338d61b
docs: add comments documentation for backend
jerubrin Feb 12, 2023
1e8cab1
Merge pull request #22 from LoginovskyMax/back-end-games
jerubrin Feb 12, 2023
64b1a08
feat: add WebSocket controller
jerubrin Feb 12, 2023
a89d00c
feat: try to make the game
jerubrin Feb 12, 2023
2a6a405
fix:add changes
LoginovskyMax Feb 13, 2023
5cefc82
feat: add login function
jerubrin Feb 13, 2023
aace62d
feat: add `getUserToken` function
jerubrin Feb 13, 2023
eb090d3
feat: add logOut
jerubrin Feb 13, 2023
66265c8
feat: add sign-up function
jerubrin Feb 13, 2023
381b26d
fix:pre-finish seabattle
LoginovskyMax Feb 13, 2023
5ab240d
Merge remote-tracking branch 'origin/login-functions' into seaBattle
LoginovskyMax Feb 13, 2023
7aba78c
feat: add error messages.
jerubrin Feb 13, 2023
9597647
fix: server would crashed if email is busy by another user
jerubrin Feb 13, 2023
70b4efb
Merge pull request #23 from LoginovskyMax/login-functions
jerubrin Feb 13, 2023
3871ed2
fix: wrong state user name (hot fix)
jerubrin Feb 13, 2023
7982f70
Merge pull request #24 from LoginovskyMax/login-functions
jerubrin Feb 13, 2023
1f1004d
fix:styles
LoginovskyMax Feb 13, 2023
790d9b7
Merge branch 'develop' into seaBattle
LoginovskyMax Feb 13, 2023
456a20b
feat: add forgot modal window
jerubrin Feb 13, 2023
1fcb712
fix: email always need to be in lower case
jerubrin Feb 13, 2023
a7774eb
feat: add reset new password
jerubrin Feb 13, 2023
740852a
Merge pull request #25 from LoginovskyMax/login-functions
jerubrin Feb 13, 2023
651f773
fix: do not show user name on reset window
jerubrin Feb 13, 2023
7ec28a0
Merge pull request #26 from LoginovskyMax/login-functions
jerubrin Feb 13, 2023
e307a31
feat: add Not Found Page
jerubrin Feb 14, 2023
f25103e
feat: add Loading state and component
jerubrin Feb 14, 2023
0a50ffe
feat: add Loading and PopUp Message to authentication
jerubrin Feb 14, 2023
6a8264f
feat:add cells,some styles
LoginovskyMax Feb 14, 2023
0baed1d
feat: add tetris
Feb 14, 2023
3ec3c20
Merge pull request #27 from LoginovskyMax/tetris
Kunitsa3 Feb 14, 2023
5a48c32
feat: add rating component
jerubrin Feb 15, 2023
055a656
Merge branch 'develop' into games-list
jerubrin Feb 15, 2023
4dbd809
fix: games
jerubrin Feb 15, 2023
bc3f179
Merge branch 'games-list' of https://github.com/LoginovskyMax/RsClone…
jerubrin Feb 15, 2023
6bce7af
fix: project with tetris doesn't build
jerubrin Feb 15, 2023
7b5cda2
Merge pull request #28 from LoginovskyMax/games-list
jerubrin Feb 15, 2023
96e9b9a
feat:creatingGameComp
LoginovskyMax Feb 15, 2023
71a0855
fix:merge conflicts
LoginovskyMax Feb 15, 2023
12c637e
fix: back end cors middleware for games
jerubrin Feb 15, 2023
c887ed2
Merge pull request #29 from LoginovskyMax/games-list
jerubrin Feb 15, 2023
e5c809e
fix: wrong import
jerubrin Feb 15, 2023
83aa9bd
Merge pull request #30 from LoginovskyMax/games-list
jerubrin Feb 15, 2023
db559df
fix:buttons
LoginovskyMax Feb 15, 2023
29aa640
Merge branch 'develop' into seaBattle
LoginovskyMax Feb 15, 2023
a835e01
fix: failed response when remove user with comment
jerubrin Feb 15, 2023
ca58af3
Merge pull request #31 from LoginovskyMax/games-list
jerubrin Feb 15, 2023
74e7213
fix: backend showing wrong comments
jerubrin Feb 15, 2023
589f074
feat:multipleer
LoginovskyMax Feb 15, 2023
c0682b5
Merge pull request #32 from LoginovskyMax/seaBattle
LoginovskyMax Feb 15, 2023
5666348
fix: CI/CD can't copying images
jerubrin Feb 15, 2023
b051ae9
Merge branch 'develop' of https://github.com/LoginovskyMax/RsClone in…
jerubrin Feb 15, 2023
fa4a316
fix: change for Web Socket to wss
jerubrin Feb 15, 2023
51a763f
fix:rename pages, some styles
LoginovskyMax Feb 15, 2023
c55e87f
Merge pull request #33 from LoginovskyMax/seaBattle
LoginovskyMax Feb 15, 2023
1b51b7b
fix: add wss server with ssl
jerubrin Feb 15, 2023
84dcd58
fix: ssl cert dosent work for back end
jerubrin Feb 15, 2023
f5273f6
fix: add different lib for wss
jerubrin Feb 15, 2023
789c24d
fix: wss url in Sea War game
jerubrin Feb 15, 2023
8fa23de
fix: SeaBattle back-end and front end url's and data
jerubrin Feb 16, 2023
a4a45c1
Merge pull request #34 from LoginovskyMax/back-end-games
jerubrin Feb 16, 2023
9e8077c
fix: wrong parametr
jerubrin Feb 16, 2023
a6b64f4
Merge pull request #35 from LoginovskyMax/back-end-games
jerubrin Feb 16, 2023
528200b
feat: add games screen
jerubrin Feb 16, 2023
8a7d437
feat:add dark theme and animations
LoginovskyMax Feb 16, 2023
8a0aed1
fix: change tetris logic
Feb 16, 2023
3898833
Merge pull request #37 from LoginovskyMax/new-tetris
Kunitsa3 Feb 16, 2023
679127a
feat: add stars for rating
jerubrin Feb 16, 2023
6885a1d
Merge branch 'develop' into game-prev-style
jerubrin Feb 16, 2023
71fdd5d
Merge pull request #36 from LoginovskyMax/back-end-games
jerubrin Feb 16, 2023
a15c310
fix: change style file name, for CI/CD build
jerubrin Feb 16, 2023
4d017bf
fix: redesign
Feb 16, 2023
12501c5
Merge pull request #39 from LoginovskyMax/redesign
Kunitsa3 Feb 16, 2023
10ed826
feat: change styles
jerubrin Feb 16, 2023
e714df1
feat: change preview style
jerubrin Feb 16, 2023
242e576
Merge branch 'develop' into game-prev-style
jerubrin Feb 16, 2023
66f6ed9
feat: add styles for preview game page
jerubrin Feb 16, 2023
9392461
feat: add media for footer and header
jerubrin Feb 16, 2023
e3afd78
Merge pull request #38 from LoginovskyMax/game-prev-style
jerubrin Feb 16, 2023
d60ca3d
fix:resolve conflicts
LoginovskyMax Feb 16, 2023
338a62f
fix: styles for rules
jerubrin Feb 16, 2023
27307a1
fix: logout button doesn't delete user token
jerubrin Feb 16, 2023
01929e6
fix:linter errors
LoginovskyMax Feb 16, 2023
5950e43
Merge pull request #40 from LoginovskyMax/seaBattle
LoginovskyMax Feb 16, 2023
93aa78e
fix: change main page to games
jerubrin Feb 16, 2023
47e4b10
Merge branch 'develop' into game-prev-style
jerubrin Feb 16, 2023
6059d90
fix: delete start page
jerubrin Feb 16, 2023
179a9d6
fix: styles
jerubrin Feb 16, 2023
b5d8bb4
Merge pull request #41 from LoginovskyMax/game-prev-style
jerubrin Feb 16, 2023
d261d22
feat:add btn and store
LoginovskyMax Feb 16, 2023
069db2e
feat: add winners back-end
jerubrin Feb 17, 2023
ed7ec86
fix: wrong field name
jerubrin Feb 17, 2023
0efdf87
fix: showing results without game name.
jerubrin Feb 17, 2023
1cc5cbe
feat: change resp codes
jerubrin Feb 17, 2023
70841ae
docs: add winners backend docs.
jerubrin Feb 17, 2023
c427c9f
docs: fix wrong type in wss messages
jerubrin Feb 17, 2023
7cd832e
feat: change styles, store theme to ls
jerubrin Feb 17, 2023
9d76ce1
Merge pull request #42 from LoginovskyMax/back-end-games
jerubrin Feb 17, 2023
5c07aa6
Merge pull request #43 from LoginovskyMax/sea-battle-for-mobile
jerubrin Feb 17, 2023
7ae44e0
feat: change style for sea battle and other components
jerubrin Feb 17, 2023
03fd76f
fix: refresh game, auto-join in Sea Battle game
jerubrin Feb 18, 2023
703c6cf
fix: auth windows style in dark mode
jerubrin Feb 18, 2023
a180dbb
feat: add Sea Battle for mobile
jerubrin Feb 18, 2023
9aecd17
Merge branch 'develop' into EnglishVersion
LoginovskyMax Feb 18, 2023
a820879
feat: add tetris controls for mobile
jerubrin Feb 18, 2023
4f25a27
Merge branch 'develop' into sea-battle-for-mobile
jerubrin Feb 18, 2023
d618592
Merge pull request #44 from LoginovskyMax/sea-battle-for-mobile
jerubrin Feb 18, 2023
4a9f5dc
fix: disable user scalable
jerubrin Feb 18, 2023
abab7e1
Merge branch 'develop' of https://github.com/LoginovskyMax/RsClone in…
jerubrin Feb 18, 2023
3734dba
fix: win message crushed the game
jerubrin Feb 18, 2023
b20d6b7
fix: wrong message at start game
jerubrin Feb 18, 2023
3984088
fix: wrong mobile styles
jerubrin Feb 18, 2023
233c539
fix: Tetris wrong scale property
jerubrin Feb 18, 2023
8bf8223
feat: memory game mobile
jerubrin Feb 18, 2023
2a50958
fix: styles for mobile
jerubrin Feb 18, 2023
3f94345
Merge pull request #45 from LoginovskyMax/winners-list
jerubrin Feb 18, 2023
aa243de
feat:add english
LoginovskyMax Feb 18, 2023
a3e73b6
fix: tetris doesn't work with keyboard
jerubrin Feb 18, 2023
0033c40
feat: add points for sea-war
jerubrin Feb 18, 2023
b6fe4e2
feat: show all ships after end of the game.
jerubrin Feb 18, 2023
e23e7a6
fix: wrong address for winners list
jerubrin Feb 18, 2023
41d4a48
feat: add memory game points
jerubrin Feb 18, 2023
0bb56b0
fix: eslint error
jerubrin Feb 18, 2023
b4318b9
Merge pull request #46 from LoginovskyMax/winners-list
jerubrin Feb 18, 2023
f41ddaf
feat: change icon
jerubrin Feb 18, 2023
b6f20aa
fix: post wrong points after win memory game
jerubrin Feb 19, 2023
656e803
feat: add different points for different levels
jerubrin Feb 19, 2023
0381991
Merge pull request #47 from LoginovskyMax/winners-list
jerubrin Feb 19, 2023
87662c5
feat: add winners-list to preview page
jerubrin Feb 19, 2023
5708c51
Merge pull request #48 from LoginovskyMax/winners-list
jerubrin Feb 19, 2023
9ade385
feat: add css colors for mobile devises
jerubrin Feb 19, 2023
76c3284
feat: disable select for user in games
jerubrin Feb 19, 2023
96e776f
feat: add user change password request
jerubrin Feb 19, 2023
93adddb
feat: change response from object to message.
jerubrin Feb 19, 2023
3c2adc4
docs: add set new password request
jerubrin Feb 19, 2023
201b994
feat: add change password dialog
jerubrin Feb 19, 2023
acf3ee7
Merge pull request #49 from LoginovskyMax/reset-password-back-end
jerubrin Feb 19, 2023
12855ef
fix:resolve conflicts
LoginovskyMax Feb 20, 2023
b1add2e
fix:done translation
LoginovskyMax Feb 20, 2023
0aa764e
feat:userPage
LoginovskyMax Feb 20, 2023
994edf1
Merge pull request #50 from LoginovskyMax/EnglishVersion
LoginovskyMax Feb 20, 2023
a9ba9ad
fix:memorygame
LoginovskyMax Feb 20, 2023
773fc16
Merge pull request #51 from LoginovskyMax/EnglishVersion
LoginovskyMax Feb 20, 2023
c12fe97
feat: mail design messages
jerubrin Feb 20, 2023
fc06a4c
Merge pull request #52 from LoginovskyMax/reset-password-back-end
jerubrin Feb 20, 2023
856845f
fix: double languageStore
jerubrin Feb 20, 2023
d78360a
fix: languageStore
jerubrin Feb 20, 2023
6dfefd9
fix: remove winners with wrong game or user IDs
jerubrin Feb 20, 2023
9315b62
feat: change footer in email messages
jerubrin Feb 21, 2023
c82c344
feat:userpage games-data
LoginovskyMax Feb 23, 2023
a0c1088
fix:missed translate
LoginovskyMax Feb 24, 2023
5195eb0
fix:conflicts
LoginovskyMax Feb 24, 2023
acd25a9
feat:add styles and animations, change userPage
LoginovskyMax Feb 24, 2023
aaf01f7
Merge pull request #53 from LoginovskyMax/EnglishVersion
LoginovskyMax Feb 24, 2023
f0eea0f
feat:add tetris background, shange styles
LoginovskyMax Feb 24, 2023
e1498de
Merge pull request #54 from LoginovskyMax/finalFixes
LoginovskyMax Feb 24, 2023
5fcccb7
feat: split admin panel
jerubrin Feb 25, 2023
0147ccb
Merge branch 'develop' into admins-feats
jerubrin Feb 25, 2023
e3a2c42
fix:translate in seabattle
LoginovskyMax Feb 25, 2023
5f0fa8a
Merge pull request #55 from LoginovskyMax/finalFixes
LoginovskyMax Feb 25, 2023
86bcc13
feat:features.md
LoginovskyMax Feb 25, 2023
92391d2
Merge pull request #56 from LoginovskyMax/finalFixes
LoginovskyMax Feb 25, 2023
7efd404
feat: add admin's tools
jerubrin Feb 26, 2023
76732d4
Merge branch 'develop' into admins-feats
jerubrin Feb 26, 2023
57167b6
feat: styles for mobile in games and user's page
jerubrin Feb 26, 2023
57ac2ce
feat: add search user function
jerubrin Feb 26, 2023
8ae0cd7
feat: add search users to backend
jerubrin Feb 26, 2023
1622cad
fix: wrong position in games
jerubrin Feb 26, 2023
bd602d8
feat: ban for sea-battle
jerubrin Feb 26, 2023
76dec07
feat: protect main admins users
jerubrin Feb 26, 2023
6c17238
feat: banned user can't play games
jerubrin Feb 26, 2023
0e37533
feat: add delete function
jerubrin Feb 26, 2023
16afa67
Merge pull request #57 from LoginovskyMax/admins-feats
jerubrin Feb 26, 2023
0ed1aa2
fix: remove Change Password window from wrong place
jerubrin Feb 26, 2023
94cbcf0
fix: email send old password after changeing
jerubrin Feb 27, 2023
bd6ccd6
docs: add points for final PR
jerubrin Feb 27, 2023
a1bcab1
fix: can open the game in ban
jerubrin Feb 27, 2023
1fd0278
fix: loading styles
jerubrin Feb 27, 2023
2bc473e
feat: user cant se rating with banned status
jerubrin Feb 27, 2023
32a47fb
Merge pull request #58 from LoginovskyMax/translate-messages
jerubrin Feb 27, 2023
c406569
feat: add logger
jerubrin Feb 27, 2023
6f9aa53
feat: add message translation
jerubrin Feb 27, 2023
a3e6411
Merge pull request #60 from LoginovskyMax/translate-messages
jerubrin Feb 27, 2023
dc1da14
docs: add Stack of project
jerubrin Mar 2, 2023
72e1909
Merge pull request #61 from LoginovskyMax/jerubrin-add-stack
Kunitsa3 Mar 2, 2023
c5ee227
fix: tetris collision in rotate function
jerubrin Mar 3, 2023
f54a1e3
Merge pull request #62 from LoginovskyMax/hot-fix-tetris-colision
jerubrin Mar 15, 2023
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
141 changes: 141 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended",
"plugin:react/jsx-runtime"
],
"plugins": ["react-hooks"],
"rules": {
"@typescript-eslint/triple-slash-reference": 0,
"no-return-assign": "off",
"no-param-reassign":"off",
"@typescript-eslint/no-floating-promises": 0,
"no-console": 1,
"no-shadow": 0,
"no-nested-ternary":"off",
"@typescript-eslint/no-explicit-any": "warn",
"react/button-has-type": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "off",
"react/prop-types": "off",
"react/display-name": "off",
"react/no-array-index-key": "off",
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"no-new":"off",
"max-classes-per-file":"off",
"react/jsx-filename-extension": [
"error",
{
"extensions": [".ts", ".tsx"]
}
],
"react/function-component-definition": [
2,
{
"namedComponents": ["arrow-function","function-declaration"],
"unnamedComponents": "arrow-function"
}
],
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "all",
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"import/extensions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"import/prefer-default-export": "off",
"import/no-anonymous-default-export": [2, {
"allowObject": true
}],
"import/no-extraneous-dependencies": "error",
"import/order": [
"error",
{
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "return"
},
{
"blankLine": "always",
"prev": "block-like",
"next": "*"
},
{
"blankLine": "always",
"prev": "*",
"next": "block-like"
},
{
"blankLine": "always",
"prev": "*",
"next": "default"
},
{
"blankLine": "always",
"prev": "*",
"next": "export"
}
],
"no-underscore-dangle": [
"error",
{
"allow": ["__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"]
}
],
"spaced-comment": [
"error",
"always",
{
"markers": ["/"]
}
],
"arrow-body-style": ["error", "as-needed"],
"no-unused-vars": "off",
"no-use-before-define": "off"
},
"ignorePatterns": ["tsconfig.json", "vite.config.ts", "build"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".js", ".jsx", ".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["node_modules", "src/"]
}
}
},
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true,
"jest": true
}
}
38 changes: 38 additions & 0 deletions .github/workflows/react.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: gamescicd

on:
push:
branches: [ "develop" ]
# pull_request:
# branches: [ "develop" ]

jobs:
build:

runs-on: self-hosted

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: sudo systemctl stop rsback
- run: npm i
- run: cp /home/worker/env/.env /home/worker/_build/RsClone/RsClone/
- run: rm vite.config.ts
- run: mv /home/worker/_build/RsClone/RsClone/vite.config.ts.prod /home/worker/_build/RsClone/RsClone/vite.config.ts
- run: npm run build
- run: rm -rf /var/www/html/*
- run: cp -rf /home/worker/_build/RsClone/RsClone/dist/* /var/www/html/
- run: cp -rf /home/worker/test-img/* /var/www/html/images/
- run: sudo systemctl start rsback
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

#ENV
.env
77 changes: 77 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,79 @@

# RsClone

Clone of steam for final task

## Stack
### Frontend
- React
- Vite
- Type Script
- SASS
- clsx - работа с CSS классами
- Zustand - state-менеджер
- Formik - работа с формами
- Yup - валидация форм
- ml-matrix - работа с матрицамии вычисляениями


### Backend
- Express
- mongoose - MongoDB OMT
- winston - логгирование.
- bcryptjs - хэширование паролей
- jsonwebtoken - создание JWT токенов
- ws - работ с WebSoket'ами
- uuid - генерация ключей для уникальных ссылок
- nodemailer - почтовый клиент
- node-captcha-generator - создание капчи
- middleware-async - для асинхронных middleware функций в запросах
- dotenv
- cors
- body-parser
- cookie-parser
- nodemon

## Back-End

- Адрес **back-end** сервера с ssl (**в преоритете**):
https://rsgames.online:8888/

- Адрес **back-end** сервера:
http://rsgames.online:8000/

Если по каким-то причинам удаленный сервер "лежит" и не отвечает можно запустить локальный сервер:
Команда для запуска сервера:
```bash
npm run serve
```
**! в другом терминале**
- Адрес локального **back-end** сервера:
http://localhost:8000
- Адрес локального **back-end** сервера с ssl:
https://localhost:8888/

! **Чтобы localhost работал с https запросами в хроме** ввести `chrome://flags/#allow-insecure-localhost` поставить в `enabled`

**! Для корректной работы локального сервера нужен файл `.env` в корне проекта**
``` JS
PORT=8888
PORTS=8000
PASS=******
KEY=*********
SMTP_HOST=mail.rsgames.online
SMTP_PORT=587
SMTP_USER=info@rsgames.online
SMTP_PASS=*******
HOST=rsgames.online
NODE_TLS_REJECT_UNAUTHORIZED=0
```

### Разделы по работе с Back-End:
- [Авторизация](docs/auth.md)
- [Список Игр](docs/games.md)
- [Отзывы и реитинг (комментарии)](docs/comments.md)
- [Морской Бой](docs/seawar.md)
- [Работа с победителями, Back End](docs/win.md)

### [Файл с фичами](features.md)

Loading