Skip to content

Commit

Permalink
Merge pull request #72 from SWE-PRJ/develop
Browse files Browse the repository at this point in the history
최종 릴리즈
  • Loading branch information
Handoni authored Jun 2, 2024
2 parents 754ca5a + 683a31f commit 77efdb4
Show file tree
Hide file tree
Showing 87 changed files with 4,911 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/backend.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 50 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,50 @@
# backend
# SWE PRJ 6조 Issue Tracker Backend

2024-1학기 소프트웨어공학 프로젝트 6조 Issue Tracker의 백엔드 어플리케이션입니다.
## 개발 환경
- ![Spring](https://img.shields.io/badge/spring-%236DB33F.svg?style=for-the-badge&logo=spring&logoColor=white) Spring Boot 3.2.5
- ![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge&logo=openjdk&logoColor=white) JDK 17
- ![MySQL](https://img.shields.io/badge/mysql-4479A1.svg?style=for-the-badge&logo=mysql&logoColor=white) MySQL 8.0
- ![IntelliJ IDEA](https://img.shields.io/badge/IntelliJIDEA-000000.svg?style=for-the-badge&logo=intellij-idea&logoColor=white) IntellijIdea
- ![Windows](https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white) ![macOS](https://img.shields.io/badge/mac%20os-000000?style=for-the-badge&logo=macos&logoColor=F0F0F0) ![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=for-the-badge&logo=ubuntu&logoColor=white)
## 요구 환경
- JDK 17
- MySQL 8.0
- Intellij IDEA 혹은 기타 Java IDE
## 실행 방법
### IDE에서 실행
1. git clone
```bash
$ git clone https://github.com/SWE-PRJ/backend.git
```
2. Intellij IDEA 등의 IDE에서 해당 프로젝트를 열고 실행

### 빌드 파일 실행
1. MySQL 계정 생성(계정이 없는경우)
다음 계정으로 MySQL 계정을 생성한다.
```
username: root
password: sqlpassword
```
2. MySQL 계정이 이미 있는경우
Windows (cmd):
```bash
set SPRING_DATASOURCE_USERNAME={ your_username }
set SPRING_DATASOURCE_PASSWORD={ your_password }
```
Windows (PowerShell):
```bash
$ env:SPRING_DATASOURCE_USERNAME = "{ your_username }"
$ env:SPRING_DATASOURCE_PASSWORD = "{ your_password }"
```
macOS / Linux:
```sh
export SPRING_DATASOURCE_USERNAME={ your_username }
export SPRING_DATASOURCE_PASSWORD={ your_password }
```

3. jar 파일 실행
```bash
$ cd build/libs
$ java -jar {jar파일명}.jar
```
40 changes: 40 additions & 0 deletions issue/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

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

### VS Code ###
.vscode/

*.DS_Store
application-secret.properties
60 changes: 60 additions & 0 deletions issue/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.5'
id 'io.spring.dependency-management' version '1.1.4'
}

ext {
springShellVersion = "3.2.5"
}

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

java {
sourceCompatibility = '17'
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'mysql:mysql-connector-java:8.0.28'
implementation 'org.springframework.shell:spring-shell-starter'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.mysql:mysql-connector-j'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation("org.junit.vintage:junit-vintage-engine") {
exclude group: "org.hamcrest", module: "hamcrest-core"
}

// JWT 토큰
implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.11.5'
implementation group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.11.5'
implementation group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.11.5'
implementation group: 'org.json', name: 'json', version: '20240303'
}

dependencyManagement {
imports {
mavenBom "org.springframework.shell:spring-shell-dependencies:$springShellVersion"
}
}

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

0 comments on commit 77efdb4

Please sign in to comment.