프로젝트 설계

뚜우웅이·2025년 3월 23일

캡스톤 디자인

목록 보기
1/35

ERD

image

팀 리포지토리 생성

Settings -> Collaborators and team -> Add people를 눌러
적당한 권한을 부여하여 팀원을 넣어준다.

그 후 브랜치에 develop이라고 개발 전용 브랜치를 생성한 후 Settings -> General -> Default branch에서 디폴트 브랜치를 develop으로 변경해준다.

그 후 Branches -> Add classic branch protection -> rule 에 들어가서 브랜치 룰을 정해준다.

  • Require a pull request before merging

브랜치에 직접 PUSH할 수 없다. 무조건 PR을 통해서만 반영할 수 있다.

로컬에 생성

팀 리포지토리에서 fork를 클릭해준 뒤 자신의 리포지토리에서 git clone을 해준다. 리포지토리 이름이 ex라면 해당 위치에 ex라는 폴더가 생기게 되는데 이 폴더 안에 Spring boot 프로젝트를 생성해줄 것이다.

의존성 추가

dependencies {
    implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
    implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
    implementation 'org.springframework.boot:spring-boot-starter-security'
    implementation 'org.springframework.boot:spring-boot-starter-validation'
    implementation 'org.springframework.boot:spring-boot-starter-web'

    // QueryDSL
    implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
    annotationProcessor 'com.querydsl:querydsl-apt:5.0.0:jakarta'
    annotationProcessor 'jakarta.annotation:jakarta.annotation-api'
    annotationProcessor 'jakarta.persistence:jakarta.persistence-api'

    // JWT
    implementation 'io.jsonwebtoken:jjwt-api:0.12.6'
    runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6'
    runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.6'

    compileOnly 'org.projectlombok:lombok'
    runtimeOnly 'com.h2database:h2'
    runtimeOnly 'com.mysql:mysql-connector-j'
    annotationProcessor 'org.projectlombok:lombok'

    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    testImplementation 'org.springframework.security:spring-security-test'
    testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

로컬에 push

issue 생성

팀 리포지토리에서 issue를 생성해준다. 먼저 issue 생성을 하기 전에 labels를 생성해줄 것이다.



labels를 추가하여 issue를 생성해준다.

git checkout -b backend를 입력하여 backend라는 브랜치를 생성함과 동시에 이동을 해준다. 그 후 add -> commit (이슈 번호를 붙여야 함 (#1)) -> git push -u origin backend로 해준다.

이 후 팀 리포지토리에 pr을 해주면 된다.

profile
공부하는 초보 개발자

0개의 댓글