diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..4abd5d8 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,65 @@ +name: Deploy to AWS Elastic Beanstalk + +permissions: + contents: read + pull-requests: write + +on: + pull_request: + types: [opened, reopened, synchronize] + push: + branches: + - "main" + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: "20" + + - name: Install dependencies + run: npm install + + - name: Build project + run: npm run build + + - name: Install AWS CLI + run: | + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + unzip awscliv2.zip + sudo ./aws/install --update + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ap-northeast-2 + + - name: Generate deployment package + run: | + mkdir -p deploy + cp -r dist deploy/ # dist 디렉토리를 포함 + cp package.json deploy/ + cp server.js deploy/ + cp Procfile deploy/Procfile + cd deploy && zip -r deploy.zip . + + - name: Beanstalk Deploy + uses: einaregilsson/beanstalk-deploy@v22 + with: + aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + application_name: inflow-v6 + environment_name: Inflow-v6-env + version_label: github-action-${{ github.sha }} + region: ap-northeast-2 + deployment_package: deploy/deploy.zip + wait_for_environment_recovery: 180 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8ee54e8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist +dist-ssr +coverage +*.local + +/cypress/videos/ +/cypress/screenshots/ + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +*.tsbuildinfo diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..a7cea0b --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["Vue.volar"] +} diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..7ac4dbc --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: npm install express && npm start \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 8f425fd..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# Front-Deploy-Test diff --git a/index.html b/index.html new file mode 100644 index 0000000..ed72939 --- /dev/null +++ b/index.html @@ -0,0 +1,17 @@ + + +
+ + + + +| 소속 부서 | +{{ employeeCode.department_path }} | +
| 사내 메일 | +{{ employeeCode.employee_email }} | +
| 휴대 번호 | +{{ employeeCode.employee_phone_number }} | +
+ 열심히 개발중{{ typingText }}
+ 무엇을 도와드릴까요?
+선택 삭제
행 추가
{{ modalTxt[header] }}
+ 선택 삭제
행 추가
{{ modalTxt[header] }}
+ 선택 삭제
행 추가
{{ modalTxt[header] }}
+ 선택 삭제
행 추가
{{ modalTxt[header] }}
+ | 사원번호 | +{{ employee.employeeCode }} | +성별 | +{{ employee.gender }} | +휴대폰번호 | +
+
+
+
+
+
+
+ {{ employee.phone }}
+ |
+ + |
|---|---|---|---|---|---|---|
| 사원명 | +{{ employee.employeeName }} | +직무 | +{{ employee.jobRole }} | +이메일 | +
+
+
+
+
+
+
+ {{ employee.email }}
+ |
+ + |
| 입사일 | +{{ employee.hireDate }} | +직위 | +{{ employee.position }} | +주소 | +
+
+
+
+
+
+
+
+ {{ employee.address }}
+ |
+ + |
| 입사유형 | +{{ employee.hireType }} | +직책 | +{{ employee.jobTitle }} | +상세주소 | ++ + + + {{ employee.detailAddress }} + | ++ |
| 생년월일 | +{{ employee.birthDate }} | +퇴사일 | +{{ employee.retirementDate || 'N/A' }} | ++ | + |
선택 삭제
행 추가
{{ modalTxt[header] }}
+ {{ modalTxt[header] }}
+ 부서를 추가하려면 추가 버튼을 클릭해주세요
+ +성공적으로 등록되었습니다!
+부서 정보 조회를 위해 부서를 선택해주세요
+ +성공적으로 저장되었습니다!
+성공적으로 삭제되었습니다!
+정말로 삭제하시겠습니까?
+ +{{ modalTxt[header] }}
+ {{ modalTxt[header] }}
+ {{ modalTxt[header] }}
+ {{ modalTxt[header] }}
+ {{ modalTxt[header] }}
+ {{ modalTxt[header] }}
+ {{ modalTxt[header] }}
+