Coder Social home page Coder Social logo

gdsc-web-backend's Introduction

GDSC-WEB-BackEnd

You can start Project

*** 저희는 초보 GIT 사용자이기 때문에 GIT CLIENT를 사용 하겠습니다.

1.먼저 작업 폴더를 만들어 주세요

image

###또는 GIT CLIENT를 통해서 clone 해주세요 image image

3. 작업 영역, branch를 만들어 주세요

image image

4. commit 메세지는 규칙에 맞춰주세요

Jason Notion에 작성된 내용입니다.

###Git Flow (Branch) :

  • develop : 요걸 기본으로 갈 생각입니다.
  • release/(version_number) : ex) Release/0.1.0
  • feature/(Feature_name) / (Short Description): ex)feature/admin
  • hotfix/(Issue_number) or Issue/(Issue_number): 사용할 일이 없기를..

Commit Convention

  • feat : 새로운 기능에 대한 커밋
  • fix : 버그 수정에 대한 커밋
  • build : 빌드 관련 파일 수정에 대한 커밋
  • chore : 그 외 자잘한 수정에 대한 커밋
  • ci : CI관련 설정 수정에 대한 커밋
  • docs : 문서 수정에 대한 커밋
  • style : 코드 스타일 혹은 포맷 등에 관한 커밋
  • refactor : 코드 리팩토링에 대한 커밋
  • test : 테스트 코드 수정에 대한 커밋 ex) feat: navigation 추가 / fix: 모바일 환경 사진 버그 수정

5. 자신의 Branch push 후 develop Branch 합치길(Merge) 원하면 pull Request를 작성해주세요

pull request 할 때에는 간단한 설명과 어떤게 바뀌었는지 알 수 있는 간단한 제목이 필요해요
pull request 한 후에는 branch를 삭제해주는게 좋은데 저희는 브랜치 2개 정도 사용해서 하나는 git pull로 계속 동기화 해보고
다른 브랜치는 브랜치 삭제하고 다시 가져오는걸로... 원하는 걸로 사용하시면 되겠습니다.

image image image

6. develop branch 가 merge 되면 git pull 을 해주세요 안하면 차후 merge 때 coflict 가 일어 날 수 있어요

Image

apllication-properties

## apllication-properties
### apllication-properties 입니다. github에는 배포를 하기위해서 올라가 있지 
# 않고 developer contributor 전용 입니다. 
### src/main/resources에 추가해주세요
# 차후 본인 환경에 맞게 조절 해주세요 

spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

spring.datasource.url=jdbc:mysql://localhost:3306/gdsc_web?useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul
spring.datasource.username= {username}
spring.datasource.password= {password}
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true

spring.server.port = 8080
spring.server.servlet.context-path= /
spring.server.servlet.encoding.charset = UTF-8
spring.server.servlet.enabled=true
spring.server.servlet.force=true

spring.mvc.view.prefix=/WEB-INF/views/
spring.mvc.view.suffix=.jsp
spring.devtools.restart.enabled = true
spring.jpa.open-in-view=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.hibernate.naming.physical-strategy = org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.jpa.hibernate.naming.use-new-id-generator-mappings= false
spring.jackson.serialization.fail-on-empty-beans= false

gdsc-web-backend's People

Contributors

gudcks0305 avatar rnjstmdals6 avatar zzuub avatar yhchan0305 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

zzuub gdsc-daejin

gdsc-web-backend's Issues

[I.O ISSUE] 파일 생성 안됨

이슈 명

I.O ISSUE

상세 내용

  • [ 서버에 파일 생성 권한이 없어서 이미지 생성이 되지 못합니다. 리눅스에선 권한을 줘야 합니다.]

참고사항

  • [ 리눅스 권한 주기...]

[ISSUSE-JWT-01] Refresh 토큰 관련에러

이슈 명

ISSUSE-JWT-01

상세 내용

  • Expired 된 토큰을 가져와야 하는데 validate 함수에서 문제가 있음 , expired 를 제외한 처리를 해주어야 할 것 같음
  • 쿠키에서 가져오는 Refresh Token 값과 저장된 값이 다르다.

참고사항

  • [ ]

Filter/MyFilter1.java 이슈

이슈 명

src/Filter/MyFilter1.java 에 Filter 패키지에 대문자가 들어가면 안될 것 같습니다.
MyFilter1.java 의 네이밍

상세 내용

As-Is

  • src/Filter/MyFilter1.java

To-Be

  • src/filter/AuthorizationFilter.java (예시)

BUG : Spring Security 권한 인증 안됨

이슈 명

스프링 시큐리티 권한 오류

상세 내용

  • [ 스프링 시큐리티에서 JWT 토큰으로 제한이 걸려있는 곳으로 갈 때 API에 접근이 안됨 error도 뜨지않음 ]

참고사항

ISSUE[AUTH-001] Token decode , add userInfo in hearder in API gateway filter // Security ?

이슈 명

ISSUE[AUTH-001] 토큰 ,유저정보를 헤더 값에 넣어 타 리소스 서비스에 유저 정보 제공

상세 내용

  • [ 문제 : header 값이 생 문자열 그 자체라 따로 API GATE WAY 를 거치지 않은 auth server에 보안 문제가 있을 수 있음]

  • 해결방안 1 : AuthServer 노출 X ( 현재 Oauth2 Redirect 시 API GATE WAY URI가 아닌 AuthServer URI 로 redirect가 되는데 배포 후 확인 해 봐야할 사항 )

  • 해결방안 2 : AuthServer와 API GATE 간 Key 공유 후 userInfo 암호화 / 복호화 ( userInfo 필요한 모든 곳이 Key값이 필요해짐 )

참고사항

  • [ ]

ISSUE-[OAUTH-1] OAUTH 연결 안됨

이슈 명

OAUTH-1

상세 내용

  • [ Oauth 연동이 안됨! 로그인을 해도 정보가 서버로 넘어가질 않음 ]

참고사항

  • [ ]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.