Skip to content

code-six/we-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

we-code

코드 식스(6조) 프로젝트 페이지 (Notion)


프로젝트 기획안 (PDF)


UI 프로토타입 (Figma)


팀: 코드6

yjiiny OiPKL jw-park-github rpghks07
yjiiny OiPKL jw-park-github rpghks07

1. 프로젝트 개요

ㆍ 시행처: [구름 x 인프런] 자바 스프링 & 리액트 풀스택 개발자 성장 과정

ㆍ 기간: 2024.04 ~ 진행중

ㆍ 프로그래밍 언어: Java, HTML, CSS, JavaScript

ㆍ 프레임워크: Spring Boot 3.2.5

ㆍ DBMS: H2

ㆍ 배포: 카카오 크램폴린

2. 주요 기능

  • 코드(Post) 및 댓글(Comment) CRUD 기능

  • 질문(Question) 및 답변(Answer) CRUD 기능

  • 회원가입, 로그인, 로그아웃, 회원 정보 관리

3. DB

3-1) ERD

ERD

3-2) DB 설계도

SiteUser (회원)

필드명 자료형 제약 조건 설명
id Long PK, Not Null, Increment 고유값
email String Not Null 이메일 주소
password String Not Null 비밀번호
username String Not Null 닉네임

Post (게시글)

필드명 자료형 제약 조건 설명
id Integer PK, Not Null, Increment 고유값
subject String Not Null 게시글 제목
author SiteUser Not Null 게시글 작성자
content String Not Null 게시글 내용
createDate LocalDateTime Not Null 게시글 작성일
modifyDate LocalDateTime Not Null 게시글 수정일

Comment (댓글)

필드명 자료형 제약 조건 설명
id Integer PK, Not Null, Increment 고유값
author SiteUser Not Null 댓글 작성자
content String Not Null 댓글 내용
createDate LocalDateTime Not Null 댓글 작성일
modifyDate LocalDateTime Not Null 댓글 수정일

Question (질문)

필드명 자료형 제약 조건 설명
id Integer PK, Not Null, Increment 고유값
subject String Not Null 질문 제목
author SiteUser Not Null 질문 작성자
content String Not Null 질문 내용
createDate LocalDateTime Not Null 질문 작성일
modifyDate LocalDateTime Not Null 질문 수정일

Answer (답변)

필드명 자료형 제약 조건 설명
id Integer PK, Not Null, Increment 고유값
author SiteUser Not Null 답변 작성자
content String Not Null 답변 내용
createDate LocalDateTime Not Null 답변 작성일
modifyDate LocalDateTime Not Null 답변 수정일

4. API 설계

SiteUser (회원)

기능 Method URL Return
회원가입 폼 표시 GET /user/signup Return signup_form 페이지
회원가입 POST /user/signup Redirect to 메인 페이지
로그인 폼 표시 GET /user/login Return login_form 페이지

Post (게시글)

기능 Method URL Return
게시글 목록 조회 GET /post/list Return post_list 페이지
게시글 상세 조회 GET /post/detail/{id} Return post_detail 페이지
게시글 생성 폼 표시 GET /post/create Return post_form 페이지
게시글 생성 POST /post/create Redirect to 게시글 목록 페이지
게시글 수정 폼 표시 GET /post/modify/{id} Return post_form 페이지
게시글 수정 POST /post/modify/{id} Redirect to 게시글 상세 페이지
게시글 삭제 GET /post/delete/{id} Redirect to 게시글 목록 페이지
게시글 투표 GET /post/vote/{id} Redirect to 게시글 상세 페이지

Comment (댓글)

기능 Method URL Return
댓글 생성 POST /comment/create/{postId} Redirect to 게시글 상세 페이지
댓글 수정 폼 표시 GET /comment/modify/{commentId} Return comment_form 페이지
댓글 수정 POST /comment/modify/{commentId} Redirect to 게시글 상세 페이지
댓글 삭제 GET /comment/delete/{commentId} Redirect to 게시글 상세 페이지
댓글 투표 GET /comment/vote/{commentId} Redirect to 게시글 상세 페이지

Question (질문)

기능 Method URL Return
질문 목록 조회 GET /question/list Return question_list 페이지
질문 상세 조회 GET /question/detail/{id} Return question_detail 페이지
질문 생성 폼 표시 GET /question/create Return question_form 페이지
질문 생성 POST /question/create Redirect to 질문 목록 페이지
질문 수정 폼 표시 GET /question/modify/{id} Return question_form 페이지
질문 수정 POST /question/modify/{id} Redirect to 질문 상세 페이지
질문 삭제 GET /question/delete/{id} Redirect to 메인 페이지
질문 투표 GET /question/vote/{id} Redirect to 질문 상세 페이지

Answer (답변)

기능 Method URL Return
메인 페이지 리다이렉트 GET / Redirect to /question/list
답변 생성 POST /answer/create/{id} Redirect to 질문 상세 페이지
답변 수정 폼 표시 GET /answer/modify/{id} Return answer_form 페이지
답변 수정 POST /answer/modify/{id} Redirect to 질문 상세 페이지
답변 삭제 GET /answer/delete/{id} Redirect to 질문 상세 페이지
답변 투표 GET /answer/vote/{id} Redirect to 질문 상세 페이지

5. 상세 화면

[/post/list]
메인화면_코드 목록

[/post/create]
코드 등록 화면

[/question/create]
질문 등록 화면

[/question/list]
질문 상세 화면

[/user/mypage]
회원 정보 수정

[/user/signup]
회원가입

About

[카카오 X 구름] 기업연계 1차 프로젝트

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors