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

1차 배포 #67

Merged
merged 245 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
245 commits
Select commit Hold shift + click to select a range
6a582b9
:tada: feat: create spring boot app
noparamin Jul 15, 2023
d667a3c
:see_no_evil: chore: update gitignore
noparamin Jul 16, 2023
13146f4
Merge pull request #2 from SWM-SMART/feat/#1-init-project
noparamin Jul 16, 2023
ca7b5db
:wrench: chore: add Dockerfile
noparamin Jul 21, 2023
978be7d
:wrench: chore: build a development environment
noparamin Jul 22, 2023
91894c2
Create gradle.yml
noparamin Jul 23, 2023
8be0a80
:construction_worker: chore: fix indentation of the cicd file
noparamin Jul 23, 2023
fa4083c
:construction_worker: chore: fix indentation of the cicd file
noparamin Jul 23, 2023
e274317
:construction_worker: chore: fix indentation of the cicd file
noparamin Jul 23, 2023
27b8841
:construction_worker: chore: annotate SpringBootTest annotation
noparamin Jul 23, 2023
c2d37b6
:construction_worker: chore: add setup java 17 in cicd file
noparamin Jul 23, 2023
8f96101
:construction_worker: chore: add setup java 17 in cicd file
noparamin Jul 23, 2023
cfe2169
:wrench: chore: update ARG that specifies JAR_FILE in Dockerfile
noparamin Jul 23, 2023
0f4a9aa
:wrench: fix: fix the script to build docker image in gradle.yml
noparamin Jul 23, 2023
54e062a
:wrench: fix: update gradle.yml to specify working-directory
noparamin Jul 23, 2023
e17be3d
:wrench: fix: update gradle.yml to specify test tag
noparamin Jul 23, 2023
3e1554b
:wrench: fix: update gradle.yml to fix build docker image script
noparamin Jul 23, 2023
364ce06
:wrench: fix: update gradle.yml to fix build docker command script
noparamin Jul 23, 2023
4220dfd
:wrench: fix: move github template files to apply teplates
noparamin Jul 24, 2023
d2f0686
:wrench: fix: update docker commands in gradle.yml
noparamin Jul 24, 2023
99ae5e5
:wrench: fix: update docker commands in gradle.yml
noparamin Jul 24, 2023
f054d33
:clown_face: feat: mock kakao oauth login api
noparamin Jul 28, 2023
2bb961a
:wrench: chore: create swagger configuration
noparamin Jul 28, 2023
08c3a58
:clown_face: chore: mock whiteboard document api
noparamin Jul 28, 2023
3f91c3d
:clown_face: chore: mock user information api
noparamin Jul 28, 2023
0211a09
:wrench: chore: create security configuration
noparamin Jul 28, 2023
ee20a9c
:hammer: fix: modify api path from /users to /users/info
noparamin Jul 28, 2023
6c8100a
:recycle: refactor: delete unused annotated code
noparamin Jul 31, 2023
000bbe1
:recycle: refactor: remove variables that don't need to declare in Do…
noparamin Jul 31, 2023
b5c306f
Merge pull request #5 from SWM-SMART/feat/#4
noparamin Jul 31, 2023
6a91e32
:wrench: fix: update SecurityConfig to resolve cors error
noparamin Jul 31, 2023
ac6478b
:wrench: fix: update SecurityConfig to resolve cors error
noparamin Jul 31, 2023
d7ee005
:wrench: fix: convert snake_case to camelCase
noparamin Jul 31, 2023
445356b
:wrench: chore: update oauth security configuration
noparamin Aug 4, 2023
1e868b9
:sparkles: feat: create jwt generation and validation
noparamin Aug 4, 2023
76d8808
:sparkles: feat: create enums for authentication
noparamin Aug 4, 2023
2de9382
:sparkles: feat: create Oauth2Authentication handler
noparamin Aug 4, 2023
402c4f2
:sparkles: feat: create User domain
noparamin Aug 4, 2023
6d9fcce
:sparkles: feat: create user repository
noparamin Aug 4, 2023
57a1959
:sparkles: feat: create Oauth2UserInfo
noparamin Aug 4, 2023
a1388ce
:sparkles: feat: create CustomOAuth2User that inherits DefaultOAuth2User
noparamin Aug 4, 2023
434a19f
:sparkles: feat: create OAuth2UserService
noparamin Aug 4, 2023
72ae779
:sparkles: feat: create OAuthAttributes
noparamin Aug 4, 2023
f2c36b7
:sparkles: feat: create api for token delivery after login
noparamin Aug 4, 2023
e24b88d
:hammer: feat: change how refreshToken are delivered
noparamin Aug 7, 2023
3d1e031
:recycle: refactor: extract as a function to set cookies
noparamin Aug 7, 2023
f57200d
Merge pull request #7 from SWM-SMART/feat/#6
noparamin Aug 7, 2023
2a50293
:bug: fix: remove mkdir resources
noparamin Aug 7, 2023
7b2e846
:bug: fix: remove mkdir resources
noparamin Aug 7, 2023
d1c90e4
:wrench: feat: swagger jwt 인증 설정 추가
noparamin Aug 7, 2023
121792c
:wrench: feat: swagger jwt 인증 설정 추가
noparamin Aug 8, 2023
b04338f
Merge pull request #10 from SWM-SMART/feat/#9
noparamin Aug 8, 2023
7b96459
:wrench: fix: change cors configuration
noparamin Aug 8, 2023
0885f1d
:wrench: fix: change cookie security
noparamin Aug 8, 2023
075bedd
:sparkles: feat: add token extraction exception handling
noparamin Aug 9, 2023
7abcede
:hammer: feat: add is_deleted and set relationships with UserDocument
noparamin Aug 9, 2023
330e7cf
:hammer: feat: set relationships with UserDocument
noparamin Aug 9, 2023
b9c8662
:hammer: feat: add getByUserId
noparamin Aug 9, 2023
b67e036
:sparkles: feat: create UserDocument
noparamin Aug 9, 2023
3821b31
:sparkles: feat: create DocumentRepository
noparamin Aug 9, 2023
957b39f
:sparkles: feat: create UserDocumentRepository
noparamin Aug 9, 2023
a56a8c0
:sparkles: feat: create DocumentDto to response document lists
noparamin Aug 9, 2023
1c3df2a
:sparkles: feat: create whiteboard document service
noparamin Aug 9, 2023
cc41bc0
:sparkles: feat: change documents read, create, delete controller
noparamin Aug 9, 2023
55b8cf5
:wrench: chore: add mongoDB dependency
noparamin Aug 10, 2023
b90c040
:sparkles: feat: create WhiteboardData domain
noparamin Aug 11, 2023
8eaface
:sparkles: feat: create WhiteboardRepository for MongoDB
noparamin Aug 11, 2023
d7ec7d7
:sparkles: feat: create Whiteboard domain
noparamin Aug 11, 2023
9e6a19a
:hammer: fix: add build annotation
noparamin Aug 11, 2023
ee28c76
:hammer: feat: add findByDocumentId
noparamin Aug 11, 2023
5c93c62
:hammer: feat: add existsByUserAndDocument
noparamin Aug 11, 2023
e356125
:hammer: fix: add builder annotation
noparamin Aug 11, 2023
991a279
:sparkles: feat: create api for creatingDocumentData
noparamin Aug 11, 2023
4cf36e4
:hammer: fix: add column annotation
noparamin Aug 11, 2023
c27c205
:sparkles: feat: add createData and findDocument by documentId
noparamin Aug 11, 2023
c296604
:hammer: fix: change the cookie expiration time
noparamin Aug 14, 2023
ca6d9f0
:hammer: fix: change createDocument to create document data
noparamin Aug 14, 2023
f2d4783
:wrench: chore: change allowed origins domain
noparamin Aug 14, 2023
33eaa74
:hammer: feat: change from update using mongoTemplate to update using…
noparamin Aug 15, 2023
b34a348
:sparkles: feat: create delete cookie to logout
noparamin Aug 17, 2023
3086a70
:sparkles: feat: create line type dto
noparamin Aug 23, 2023
6ff37e4
:sparkles: feat: create line type
noparamin Aug 23, 2023
7ade0d7
:recycle: refactor: create setWhiteboard
noparamin Aug 28, 2023
1d85216
:recycle: refactor: abstract whiteboard data
noparamin Aug 29, 2023
cd4239f
:recycle: refactor: abstract whiteboard data
noparamin Aug 29, 2023
549809d
Merge pull request #11 from SWM-SMART/feat/#8
noparamin Aug 30, 2023
881b9e6
:sparkles: feat: create aws s3 upload
noparamin Sep 13, 2023
989c8bd
:sparkles: feat: create file domain
noparamin Sep 13, 2023
c1f2ddf
:sparkles: feat: create FileService
noparamin Sep 13, 2023
80c10fe
:sparkles: feat: create FileRepository
noparamin Sep 13, 2023
1817fe8
Merge pull request #13 from SWM-SMART/feat/#12
noparamin Sep 13, 2023
1d3f37a
:sparkles: feat: create reading file content #15
noparamin Sep 28, 2023
801f09e
:sparkles: feat: add objectKey #15
noparamin Sep 28, 2023
bb0bb52
:sparkles: feat: concatenate audio files #15
noparamin Sep 28, 2023
27d6287
:sparkles: feat: create test api #15
noparamin Sep 28, 2023
d714694
Merge pull request #16 from SWM-SMART/feat/#15
noparamin Oct 11, 2023
dac10bf
:hammer: feat: add documentId to identify document
noparamin Oct 16, 2023
76ca8b8
Merge pull request #18 from SWM-SMART/feat/#15
noparamin Oct 16, 2023
ac62a73
:hammer: fix: update files for pdf upload
noparamin Oct 19, 2023
0f00bc9
:sparkles: feat: create pdf features
noparamin Oct 19, 2023
51b4e30
Merge pull request #19 from SWM-SMART/feat/#17
noparamin Oct 19, 2023
919c574
:sparkles: feat: create request keywords #20
noparamin Oct 23, 2023
30dc509
Merge pull request #21 from SWM-SMART/feat/#20
noparamin Oct 23, 2023
c8e7672
:sparkles: feat: create controller for upload audio File #22
noparamin Oct 25, 2023
8b31c05
:sparkles: feat: create Clova STT feature #22
noparamin Oct 25, 2023
05b3665
:sparkles: feat: create Note domain #22
noparamin Oct 25, 2023
b7afd97
:sparkles: feat: create Summary domain #22
noparamin Oct 25, 2023
06bc802
:sparkles: feat: create Note feature #22
noparamin Oct 25, 2023
ec23bf1
:sparkles: feat: create Summary feature #22
noparamin Oct 25, 2023
0eb75d9
:hammer: feat: create delete audio file #22
noparamin Oct 25, 2023
7bd621e
:hammer: fix: update requestBody to text block #22
noparamin Oct 25, 2023
a039307
Merge pull request #23 from SWM-SMART/feat/#22
noparamin Oct 25, 2023
b300d9b
:hammer: feat: add deleteMindmap in deleteAudioFile #24
noparamin Oct 27, 2023
35d854d
:hammer: feat: add transactional #24
noparamin Oct 27, 2023
be35dfe
:sparkles: feat: create mindmap domain #24
noparamin Oct 28, 2023
fe54bfa
:sparkles: feat: create mindmap crud feature #24
noparamin Oct 28, 2023
5f835d2
:sparkles: feat: create request mindmap for STT feature #24
noparamin Oct 29, 2023
9dc1886
Merge pull request #25 from SWM-SMART/feat/#24
noparamin Oct 29, 2023
4b7544e
:sparkles: feat: create get pdf file feature #26
noparamin Oct 30, 2023
f1da873
:sparkles: feat: create lecturenote domain #26
noparamin Nov 2, 2023
b50cce0
:sparkles: feat: create lectureNote feature #26
noparamin Nov 2, 2023
226ff9b
:sparkles: feat: create getAudioFileSTT feature #26
noparamin Nov 2, 2023
50a5b02
:hammer: feat: change STT data including time #26
noparamin Nov 2, 2023
c335487
:sparkles: feat: create getUrlPath #26
noparamin Nov 2, 2023
33814b2
Merge pull request #27 from SWM-SMART/feat/#26
noparamin Nov 2, 2023
84b5643
:sparkles: feat: create keyword update feature #28
noparamin Nov 3, 2023
dce007b
:sparkles: feat: create keywordsDto #28
noparamin Nov 3, 2023
8ffc62d
:hammer: fix: change pdfFile requestparam to pdf #28
noparamin Nov 3, 2023
7e6d884
Merge pull request #29 from SWM-SMART/feat/#28
noparamin Nov 3, 2023
0966de1
:sparkles: feat: create read mindmap controller #30
noparamin Nov 3, 2023
1bea393
Merge pull request #31 from SWM-SMART/feat/#30
noparamin Nov 3, 2023
43fc75f
:hammer: feat: change update condition from fileId to File #32
noparamin Nov 5, 2023
124e74f
:hammer: fix: delete fileId #32
noparamin Nov 5, 2023
2e3a4d6
:hammer: feat: create findFileByDocument feature #32
noparamin Nov 5, 2023
738cba6
:fire: fix: delete fileId #32
noparamin Nov 5, 2023
2b9dc71
:wrench: fix: change relationship Document domain #32
noparamin Nov 6, 2023
c99a02f
:wrench: fix: change relationship User domain #32
noparamin Nov 6, 2023
fb10a44
:wrench: fix: add dataType #32
noparamin Nov 6, 2023
833d6b5
:wrench: fix: delete documentData #32
noparamin Nov 6, 2023
6bcd037
:wrench: fix: delete dataType #32
noparamin Nov 6, 2023
4f88a57
:sparkles: feat: create setDataType feature #32
noparamin Nov 6, 2023
6b0c9be
Merge pull request #33 from SWM-SMART/feat/#32
noparamin Nov 6, 2023
1d39994
:sparkles: feat: create graph controller feature #32
noparamin Nov 6, 2023
0dc047d
:sparkles: feat: create check dataType feature #32
noparamin Nov 6, 2023
2bd05f0
:hammer: fix: set aiUrl #34
noparamin Nov 6, 2023
d608983
:hammer: fix: add stt full text #34
noparamin Nov 6, 2023
a6328ae
Merge pull request #35 from SWM-SMART/feat/#34
noparamin Nov 6, 2023
af74866
:sparkles: feat: create find summary feature #36
noparamin Nov 6, 2023
7f198fa
:sparkles: feat: create request ai answer feature #36
noparamin Nov 6, 2023
86120c1
:hammer: fix: change content type to text #36
noparamin Nov 6, 2023
288ae6f
:sparkles: feat: create get answer controller #36
noparamin Nov 6, 2023
8135b09
Merge pull request #37 from SWM-SMART/feat/#36
noparamin Nov 6, 2023
6260124
:hammer: fix: remove requestService in MindmapService to fix circular…
noparamin Nov 7, 2023
7806099
:hammer: fix: change filePath to fileName #38
noparamin Nov 7, 2023
4047dca
:hammer: feat: add create summary #38
noparamin Nov 7, 2023
d1eaf6c
Merge pull request #39 from SWM-SMART/feat/#38
noparamin Nov 7, 2023
5abede3
:hammer: fix: add set properties in updateFile #40
noparamin Nov 9, 2023
261490b
:sparkles: feat: add api to subscribe sse #40
noparamin Nov 9, 2023
9e71a42
:sparkles: feat: create sse repository #40
noparamin Nov 9, 2023
2823a29
:sparkles: feat: create sse service #40
noparamin Nov 9, 2023
1ee598e
Merge pull request #41 from SWM-SMART/feat/#40
noparamin Nov 9, 2023
8c2ed36
:sparkles: feat: create keywordsbodyDto #40
noparamin Nov 9, 2023
fded865
Merge pull request #42 from SWM-SMART/feat/#40
noparamin Nov 9, 2023
a0ad31e
:sparkles: feat: create keyword domain #43
noparamin Nov 9, 2023
9b9e543
:sparkles: feat: create keyword service #43
noparamin Nov 9, 2023
4400f5a
:sparkles: feat: create keyword repo #43
noparamin Nov 9, 2023
b695bee
:sparkles: feat: create uploaddto for upload audiofile response body #43
noparamin Nov 9, 2023
4a88ad8
:fire: fix: delete keywords field #43
noparamin Nov 9, 2023
3c12db3
:hammer: feat: add save keyword #43
noparamin Nov 9, 2023
11b5656
:hammer: fix: move updatekeyword to keywordService #43
noparamin Nov 9, 2023
f2d11ee
:hammer: fix: change logic for update #43
noparamin Nov 9, 2023
9a06a98
:hammer: fix: add save keyword #43
noparamin Nov 9, 2023
c7ce9d4
Merge pull request #44 from SWM-SMART/feat/#43
noparamin Nov 9, 2023
1fa6113
:hammer: fix: change api structure
noparamin Nov 10, 2023
e10b8b0
:hammer: fix: change String to KeywordsBodyDto
noparamin Nov 10, 2023
a0b010f
:hammer: fix: change String to KeywordsBodyDto
noparamin Nov 10, 2023
c805bce
:hammer: fix: change ngrok url
noparamin Nov 10, 2023
138711b
:sparkles: feat: create pdf converter feature #45
noparamin Nov 11, 2023
401607e
:sparkles: feat: create summaryDto #45
noparamin Nov 11, 2023
d834310
:sparkles: feat: create answerDto for deserializing ai server respons…
noparamin Nov 11, 2023
f530968
:sparkles: feat: create dto for request #45
noparamin Nov 11, 2023
6b52610
:sparkles: feat: create dto for deserializing ai server response #45
noparamin Nov 11, 2023
96b4ebf
:wrench: feat: add itexpdf #45
noparamin Nov 11, 2023
9ccd602
:hammer: feat: add dto #45
noparamin Nov 11, 2023
85f4e96
:hammer: feat: add constructor for deserializing #45
noparamin Nov 11, 2023
aa3297d
:sparkles: feat: add text to pdf feature #45
noparamin Nov 11, 2023
eafea2d
:hammer: feat: add objectKey #45
noparamin Nov 11, 2023
0f6f110
:hammer: feat: add uploadTextPdfFile #45
noparamin Nov 11, 2023
95749bb
:hammer: feat: change responseDto #45
noparamin Nov 11, 2023
1d00359
:hammer: feat: change String to dto #45
noparamin Nov 11, 2023
e60fe55
:hammer: feat: change String to dto #45
noparamin Nov 11, 2023
459cc6f
Merge pull request #46 from SWM-SMART/feat/#45
noparamin Nov 11, 2023
5b885e8
:hammer: feat: add userId #47
noparamin Nov 11, 2023
5f9e3ae
:hammer: feat: change file name #47
noparamin Nov 11, 2023
ce5be3d
Merge pull request #48 from SWM-SMART/feat/#47
noparamin Nov 11, 2023
e66a4d1
:hammer: feat: add findKeywords #47
noparamin Nov 12, 2023
bf2af85
:hammer: feat: add sse for ai response #47
noparamin Nov 12, 2023
fe9fb3a
:hammer: feat: change ai request sse #47
noparamin Nov 12, 2023
ece3e37
:fire: fix: delete unused code #47
noparamin Nov 12, 2023
c72e6ee
Merge pull request #50 from SWM-SMART/feat/#49
noparamin Nov 12, 2023
7a2467f
:hammer: feat: change stt api to ai server #51
noparamin Nov 12, 2023
7e517a4
Merge pull request #52 from SWM-SMART/feat/#51
noparamin Nov 12, 2023
ec98a0c
:sparkles: feat: create Stt data dto #53
noparamin Nov 12, 2023
151f0dc
:hammer: feat: change request feature SSE #53
noparamin Nov 12, 2023
2c3a832
:hammer: feat: add SSE for STT #53
noparamin Nov 12, 2023
0e11ef1
Merge pull request #54 from SWM-SMART/feat/#53
noparamin Nov 12, 2023
3457aea
:hammer: fix: change audioUrl key #53
noparamin Nov 13, 2023
a4a2440
:hammer: fix: change path file name #53
noparamin Nov 13, 2023
1706fd6
Merge pull request #55 from SWM-SMART/feat/#53
noparamin Nov 13, 2023
a46ab1f
:hammer: fix: add condition for keyword pdf #56
noparamin Nov 13, 2023
ea0315a
Merge pull request #57 from SWM-SMART/feat/#56
noparamin Nov 13, 2023
bb071c2
:hammer: feat: add count pdf pages and check limit #56
noparamin Nov 13, 2023
48e89ab
Merge pull request #59 from SWM-SMART/feat/#58
noparamin Nov 13, 2023
4321a0c
:hammer: fix: change document read jpa #60
noparamin Nov 14, 2023
5f0ac65
:hammer: fix: apply revised document read #60
noparamin Nov 14, 2023
ec87d39
Merge pull request #61 from SWM-SMART/feat/#60
noparamin Nov 14, 2023
f1b2887
:hammer: fix: change request body order
noparamin Nov 15, 2023
eda6c42
:sparkles: feat: create pdf url dto
noparamin Nov 15, 2023
0e27cfe
:hammer: feat: change sse logic #62
noparamin Nov 15, 2023
fe26884
:hammer: feat: add mindmap check null feature #62
noparamin Nov 15, 2023
af63cd5
:hammer: feat: add keywords field #62
noparamin Nov 15, 2023
a288b20
:hammer: feat: add SSE in getMindmap #62
noparamin Nov 15, 2023
71efe63
:hammer: fix: remove sse in upload #62
noparamin Nov 15, 2023
b4475b8
:hammer: fix: change String to dto #62
noparamin Nov 15, 2023
5c4b201
:hammer: fix: change String to dto #62
noparamin Nov 15, 2023
2c90d82
:sparkles: feat: create answer domain #63
noparamin Nov 17, 2023
b2bfab5
:sparkles: feat: create answer repository #63
noparamin Nov 17, 2023
6ae5be4
:sparkles: feat: create answer service #63
noparamin Nov 17, 2023
ead1a32
:hammer: fix: add path in set cookie #63
noparamin Nov 17, 2023
9fb3aa1
:wrench: feat: add font for korean #63
noparamin Nov 18, 2023
7108b7c
:hammer: feat: add korean font #63
noparamin Nov 18, 2023
b7c8b89
:hammer: fix: delete set location #63
noparamin Nov 18, 2023
0ff1a3e
:hammer: fix: change file type #63
noparamin Nov 18, 2023
cf703c1
:hammer: fix: add question service #63
noparamin Nov 18, 2023
85ae4f2
:hammer: fix: fix creating answerDto if null #63
noparamin Nov 18, 2023
8c94330
Merge pull request #64 from SWM-SMART/feat/#63
noparamin Nov 18, 2023
5ecfe36
:hammer: fix: fix authentication error #63
noparamin Nov 19, 2023
79ea473
:hammer: fix: fix authentication error #63
noparamin Nov 19, 2023
8eb5682
:hammer: fix: add authorization #63
noparamin Nov 19, 2023
d37bb81
:hammer: fix: add exception #63
noparamin Nov 19, 2023
3c1f7f6
:hammer: fix: add check authorization #63
noparamin Nov 19, 2023
ff72502
:hammer: feat: add check summary #63
noparamin Nov 19, 2023
705cbed
:hammer: fix: fix answer creation error #63
noparamin Nov 19, 2023
22984ad
:hammer: fix: fix mindmap creation error #63
noparamin Nov 19, 2023
7036f57
Merge pull request #66 from SWM-SMART/feat/#63
noparamin Nov 19, 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
File renamed without changes.
121 changes: 121 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main", "dev" ]

jobs:
build_main:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

steps:
- name: checkout repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'

- name: make application-prod.yml
run: |
cd ./src/main/resources
touch ./application-prod.yml
echo "${{ secrets.APPLICATION_PROD }}" > ./application.yml

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build

- name: Build Docker image
run: docker build --platform linux/amd64 -t noparamin/watchboard .

- name: Log in Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Publish to Docker Hub
run: docker push noparamin/watchboard:latest

- name: Deploy with AWS SSM Send-Command
uses: peterkimzz/[email protected]
id: ssm
with:
aws-region: ${{ secrets.AWS_REGION }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
instance-ids: ${{ secrets.INSTANCE_ID }}
working-directory: /usr/bin
command: |
docker pull noparamin/watchboard
docker stop $(docker ps -a -q)
docker run -d -p 8080:8080 noparamin/watchboard
docker rm $(docker ps --filter 'status=exited' -a -q)
docker image prune -a -f

build_dev:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev'

steps:
- name: checkout repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'

- name: make application-dev.yml
run: |
cd ./src/main/resources
touch ./application-dev.yml
echo "${{ secrets.APPLICATION_DEV }}" > ./application.yml

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build

- name: Build Docker image
run: docker build --platform linux/amd64 -t noparamin/watchboard:test .

- name: Log in Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Publish to Docker Hub
run: docker push noparamin/watchboard:test

- name: Deploy with AWS SSM Send-Command
uses: peterkimzz/[email protected]
id: ssm
with:
aws-region: ${{ secrets.AWS_REGION }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
instance-ids: ${{ secrets.INSTANCE_ID }}
working-directory: /usr/bin
command: |
docker pull noparamin/watchboard:test
docker stop $(docker ps -a -q)
docker run -d -p 8081:8081 noparamin/watchboard:test
docker rm $(docker ps --filter 'status=exited' -a -q)
docker image prune -a -f
72 changes: 35 additions & 37 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,42 +1,40 @@
*#
*.iml
*.ipr
*.iws
*.jar
*.sw?
*~
.#*
.*.md.html
.DS_Store
.attach_pid*
<<<<<<< HEAD
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.gradle
.idea
.metadata
.project
.recommenders
.settings
.springBeans
.vscode
/code
MANIFEST.MF
_site/
activemq-data
bin
build
!/**/src/**/bin
!/**/src/**/build
build.log
dependency-reduced-pom.xml
dump.rdb
interpolated*.xml
lib/
manifest.yml
out
overridedb.*
target
.flattened-pom.xml
secrets.yml
.gradletasknamecache
.sts4-cache
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
application-dev.yml
application-prod.yml
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM amazoncorretto:17
ARG JAR_FILE=./build/libs/*-SNAPSHOT.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
56 changes: 56 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.1'
id 'io.spring.dependency-management' version '1.1.0'
}

group = 'com.smart'
version = '0.0.1-SNAPSHOT'

java {
sourceCompatibility = '17'
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'mysql:mysql-connector-java:8.0.32'
implementation "org.springframework.boot:spring-boot-starter-data-mongodb"

implementation "org.springframework.boot:spring-boot-starter-security"
implementation "org.springframework.boot:spring-boot-starter-oauth2-client"
implementation "org.springframework.security:spring-security-test"

implementation 'org.springframework.boot:spring-boot-starter-websocket'
implementation 'io.nats:nats-spring-boot-starter:0.5.6'
implementation 'org.webjars:stomp-websocket:2.3.4'

implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
implementation 'com.auth0:java-jwt:4.4.0'

implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0'

implementation 'com.itextpdf:itextpdf:5.5.13.3'

compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

tasks.named('test') {
useJUnitPlatform()
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading