Skip to content

Commit 2f47025

Browse files
authored
Merge pull request #90 from boostcampwm-2022/dev
Deploy: ๋กœ๊ทธ์ธ ๋ฐ ์›Œํฌ์ŠคํŽ˜์ด์Šค ์ƒ์„ฑ/์ฐธ์—ฌ
2 parents 7396497 + 8c4a5ca commit 2f47025

File tree

112 files changed

+25304
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+25304
-0
lines changed

โ€Ž.github/workflows/cd.ymlโ€Ž

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: cd
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ main ]
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Deploy
14+
uses: appleboy/[email protected]
15+
with:
16+
host: ${{ secrets.SSH_HOST }}
17+
username: ${{ secrets.SSH_USERNAME }}
18+
password: ${{ secrets.SSH_PASSWORD }}
19+
port: ${{ secrets.SSH_PORT }}
20+
script: ${{ secrets.DEPLOY_SCRIPT }}

โ€Ž.github/workflows/ci.ymlโ€Ž

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: ci
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches: [ dev ]
7+
8+
jobs:
9+
build:
10+
name: Build and test
11+
strategy:
12+
matrix:
13+
os: [ ubuntu-latest, windows-latest, macos-latest ]
14+
node-version: [ 16, 18 ]
15+
16+
runs-on: ${{ matrix.os }}
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Use node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: npm ci
25+
- name: For client directory
26+
run: |
27+
cd client
28+
npm run build --if-present
29+
npm test --if-present
30+
- name: For server directory
31+
run: |
32+
cd server
33+
npm run build --if-present
34+
npm test --if-present

โ€Ž.gitignoreโ€Ž

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# ignore settings for yarn berry zero install
2+
.yarn/*
3+
!.yarn/cache
4+
!.yarn/releases
5+
!.yarn/plugins
6+
!.yarn/sdks
7+
!.yarn/versions
8+
9+
# Logs
10+
logs
11+
*.log
12+
npm-debug.log*
13+
yarn-debug.log*
14+
yarn-error.log*
15+
pnpm-debug.log*
16+
lerna-debug.log*
17+
18+
node_modules
19+
dist
20+
dist-ssr
21+
*.local
22+
23+
# Editor directories and files
24+
.idea
25+
.DS_Store
26+
*.suo
27+
*.ntvs*
28+
*.njsproj
29+
*.sln
30+
*.sw?
31+
32+
.env

โ€Ž.husky/pre-commitโ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run lint-staged

โ€Ž.prettierrcโ€Ž

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"useTabs": false,
5+
"tabWidth": 2,
6+
"bracketSpacing": true,
7+
"singleQuote": true,
8+
"endOfLine": "lf"
9+
}

โ€Žclient/.env.vaultโ€Ž

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#################################################################################
2+
# #
3+
# This file uniquely identifies your project in dotenv-vault. #
4+
# You SHOULD commit this file to source control. #
5+
# #
6+
# Generated with 'npx dotenv-vault new' #
7+
# #
8+
# Learn more at https://dotenv.org/env-vault #
9+
# #
10+
#################################################################################
11+
12+
DOTENV_VAULT=vlt_6f546b9027b83868825eb071a202d75a62a48c1b429093f53d64ed5ecb65ff17

โ€Žclient/.eslintrcโ€Ž

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:react/recommended",
9+
"plugin:@typescript-eslint/recommended",
10+
"plugin:import/typescript",
11+
"plugin:import/recommended"
12+
],
13+
"parser": "@typescript-eslint/parser",
14+
"parserOptions": {
15+
"ecmaFeatures": {
16+
"jsx": true
17+
},
18+
"ecmaVersion": "latest",
19+
"sourceType": "module"
20+
},
21+
"plugins": ["react", "@typescript-eslint", "import"],
22+
"settings": {
23+
"react": {
24+
"version": "detect"
25+
}
26+
},
27+
"rules": {
28+
"react/react-in-jsx-scope": "off",
29+
"react/jsx-filename-extension": [1, { "extensions": [".ts", ".tsx"] }],
30+
"react/no-unknown-property": ["error", { "ignore": ["css"] }],
31+
"no-non-null-assertion": "off",
32+
"no-unused-vars": "off",
33+
"no-nested-ternary": "error",
34+
"eqeqeq": "error",
35+
"no-console": "warn",
36+
"import/no-unresolved": "off",
37+
"import/order": [
38+
"error",
39+
{
40+
"groups": ["builtin", "external", ["parent", "sibling"], "index"],
41+
"pathGroups": [
42+
{
43+
"pattern": "angular",
44+
"group": "external",
45+
"position": "before"
46+
}
47+
],
48+
"alphabetize": {
49+
"order": "asc",
50+
"caseInsensitive": true
51+
},
52+
"newlines-between": "always"
53+
}
54+
]
55+
}
56+
}

โ€Žclient/.gitignoreโ€Ž

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
.env*
27+
.flaskenv*
28+
!.env.project
29+
!.env.vault

โ€Žclient/index.htmlโ€Ž

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6+
<link rel="preconnect" href="https://fonts.googleapis.com" />
7+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
8+
<link
9+
href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap"
10+
rel="stylesheet"
11+
/>
12+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
13+
<title>Wabinar</title>
14+
</head>
15+
<body>
16+
<div id="root"></div>
17+
<div id="portal-root"></div>
18+
<script type="module" src="/src/main.tsx"></script>
19+
</body>
20+
</html>

โ€Žclient/package.jsonโ€Ž

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "client",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc && vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@react-icons/all-files": "^4.1.0",
13+
"axios": "^1.1.3",
14+
"classnames": "^2.3.2",
15+
"react": "^18.2.0",
16+
"react-dom": "^18.2.0",
17+
"react-loader-spinner": "^5.3.4",
18+
"react-router-dom": "^6.4.3"
19+
},
20+
"devDependencies": {
21+
"@testing-library/jest-dom": "^5.16.5",
22+
"@types/react": "^18.0.24",
23+
"@types/react-dom": "^18.0.8",
24+
"@types/testing-library__jest-dom": "^5",
25+
"@vitejs/plugin-react": "^2.2.0",
26+
"eslint-plugin-react": "latest",
27+
"sass": "^1.56.1",
28+
"vite": "^3.2.3",
29+
"vite-tsconfig-paths": "^3.5.2"
30+
}
31+
}

0 commit comments

Comments
ย (0)