Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 10 additions & 0 deletions app-back/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#airbnb
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
12 changes: 12 additions & 0 deletions app-back/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
PORT=3000
DB_HOST=localhost
DB_USER=postgres
DB_PASSWORD=2907
DB_DATABASE=postgres
CLIENT_HOST=http://localhost:5173
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=gariktop1321@gmail.com
SMTP_PASSWORD=jxxyomtzepcjquyu
JWT_KEY=9f3d9a4c6d8f4e1b8a6c2e7f1c9e3d5a7b8c6e4f2a1d9c8b7e6f5a4c3b2d1
JWT_REFRESH_KEY=K3xA8rP2mJ9fN7sZQwE0YdHkV5B6uC1T4oR_MeLaiXWqGzUybFhSnOcpD8Jt
10 changes: 10 additions & 0 deletions app-back/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
extends: '@mate-academy/eslint-config',
env: {
jest: true
},
rules: {
'no-proto': 0
},
plugins: ['jest']
};
23 changes: 23 additions & 0 deletions app-back/.github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test

on:
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
Comment on lines +17 to +19

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good practice to use the latest major versions of GitHub Actions to benefit from new features, bug fixes, and performance improvements. Consider updating actions/checkout to v4 and actions/setup-node to v4. The v1 version of setup-node is quite outdated and may not support newer Node.js features efficiently.

with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
23 changes: 23 additions & 0 deletions app-back/.github/workflows/test.yml-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test

on:
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
9 changes: 9 additions & 0 deletions app-back/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# IDE
.idea
.vscode

# Node
node_modules

# MacOS
.DS_Store
2 changes: 2 additions & 0 deletions app-back/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
/dist
8 changes: 8 additions & 0 deletions app-back/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 80
}
Loading