-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Api-v0.0.1
- Loading branch information
Showing
209 changed files
with
5,954 additions
and
93 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Build Location Server | ||
on: | ||
push: | ||
tags: | ||
- Api-v*.*.* | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
image: deploy-test | ||
tag: latest | ||
strategy: | ||
#모듈들 명 | ||
matrix: | ||
kotlin-version: [ 1.5.31 ] | ||
java-version: [ 11 ] | ||
outputs: | ||
#버전 | ||
VERSION: ${{ steps.get_version.outputs.VERSION }} | ||
steps: | ||
- name: Check Out The Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Kotlin | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
kotlin-version: ${{ matrix.kotlin-version }} | ||
distribution: 'adopt' | ||
|
||
# branch tags -> version (without v) | ||
- name: Get the version | ||
id: get_version | ||
run: | | ||
RELEASE_VERSION_WITHOUT_V="$(cut -d'v' -f2 <<< ${GITHUB_REF#refs/*/})" | ||
echo "RELEASE_VERSION_WITHOUT_V=$RELEASE_VERSION_WITHOUT_V" >> $GITHUB_ENV | ||
- name: Start containers # test 돌릴때 레디스 필요 | ||
run: docker-compose up -d | ||
|
||
- name: Gradle Build | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Execute Gradle build | ||
run: ./gradlew build :Whatnow-Api:build --no-daemon | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to NCP Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ secrets.NCP_CONTAINER_REGISTRY }} | ||
username: ${{ secrets.NCP_ACCESS_KEY }} | ||
password: ${{ secrets.NCP_SECRET_KEY }} | ||
|
||
# docker build / push to NCP Container Registry | ||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: ./Whatnow-Location | ||
# image push 최적화 | ||
push: true | ||
tags: ${{secrets.NCP_CONTAINER_REGISTRY}}/whatnow-location:${{steps.get_version.outputs.VERSION }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: CI_Check | ||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
kotlin-version: [ 1.5.31 ] | ||
java-version: [ 11 ] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Kotlin | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
kotlin-version: ${{ matrix.kotlin-version }} | ||
distribution: 'adopt' | ||
|
||
- name: Cache SonarCloud packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
|
||
- name: Cache Gradle packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
|
||
- name: Start containers # test 돌릴때 레디스 필요 | ||
run: docker-compose up -d | ||
|
||
- name: spotless check | ||
run: ./gradlew spotlessCheck --no-daemon | ||
|
||
- name: test and analyze | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: ./gradlew test sonar --info --stacktrace --no-daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# 디밸롭 메인 브런치의 총 테스트 커버리지 측정을 위한 ci workflow | ||
name: develop-branch-test-coverage | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
kotlin-version: [ 1.5.31 ] | ||
java-version: [ 11 ] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Kotlin | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
kotlin-version: ${{ matrix.kotlin-version }} | ||
distribution: 'adopt' | ||
|
||
- name: Cache SonarCloud packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
|
||
- name: Cache Gradle packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
|
||
- name: Start containers # test 돌릴때 레디스 필요 | ||
run: docker-compose up -d | ||
|
||
- name: test | ||
run: ./gradlew test --info --stacktrace --no-daemon | ||
|
||
- name: analyze | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: ./gradlew sonar --info --stacktrace --no-daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,6 @@ out/ | |
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
.env | ||
.env.* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
# 13th-6team-server | ||
66666년만에 환생한 흑마법사 | ||
66666년만에 환생한 흑마법사 | ||
|
||
|
||
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=depromeet_Whatnow-Api&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=depromeet_Whatnow-Api) | ||
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=depromeet_Whatnow-Api&metric=coverage)](https://sonarcloud.io/summary/new_code?id=depromeet_Whatnow-Api) | ||
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=depromeet_Whatnow-Api&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=depromeet_Whatnow-Api) | ||
|
||
|
||
## 서비스 | ||
- Whatnow-Api | ||
- Whatnow-Location | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
FROM adoptopenjdk/openjdk11 | ||
ARG JAR_FILE=build/libs/*.jar | ||
COPY ${JAR_FILE} /app.jar | ||
ENTRYPOINT ["java","-jar"] | ||
EXPOSE 8080 | ||
|
||
EXPOSE 8080 | ||
|
||
COPY ./build/libs/*.jar app.jar | ||
ARG PROFILE=prod | ||
ENV PROFILE=${PROFILE} | ||
|
||
ENTRYPOINT ["java","-Dspring.profiles.active=${PROFILE}", "-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
dependencies { | ||
implementation(project(":Whatnow-Domain")) | ||
implementation(project(":Whatnow-Infrastructure")) | ||
implementation(project(":Whatnow-Common")) | ||
|
||
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("org.springdoc:springdoc-openapi-ui:1.6.12") | ||
implementation("org.springframework.boot:spring-boot-starter-security") | ||
} |
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...ow-Api/src/main/kotlin/com/depromeet/promiseapi/adapter/in/controller/DomainController.kt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
.../main/kotlin/com/depromeet/promiseapi/adapter/out/persistence/DomainPersistenceAdapter.kt
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
Whatnow-Api/src/main/kotlin/com/depromeet/promiseapi/application/port/in/PromiseUseCase.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
Whatnow-Api/src/main/kotlin/com/depromeet/promiseapi/application/port/out/LoadDomainPort.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...now-Api/src/main/kotlin/com/depromeet/promiseapi/application/port/out/RecordDomainPort.kt
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
Whatnow-Api/src/main/kotlin/com/depromeet/promiseapi/application/service/DomainService.kt
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
Whatnow-Api/src/main/kotlin/com/depromeet/promiseapi/domain/dto/DomainRequestDto.kt
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...now-Api/src/main/kotlin/com/depromeet/promiseapi/global/common/exception/BasicResponse.kt
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
Whatnow-Api/src/main/kotlin/com/depromeet/promiseapi/global/config/WebConfig.kt
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...omeet/promiseapi/PromiseApiApplication.kt → ...epromeet/whatnow/WhatnowApiApplication.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package com.depromeet.promiseapi | ||
package com.depromeet.whatnow | ||
|
||
import org.springframework.boot.autoconfigure.SpringBootApplication | ||
import org.springframework.boot.runApplication | ||
|
||
@SpringBootApplication | ||
class PromiseApiApplication | ||
class WhatnowApiApplication | ||
|
||
fun main(args: Array<String>) { | ||
runApplication<PromiseApiApplication>(*args) | ||
runApplication<WhatnowApiApplication>(*args) | ||
} |
Oops, something went wrong.