Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
111coding committed Nov 29, 2023
0 parents commit c07cb0f
Show file tree
Hide file tree
Showing 51 changed files with 1,921 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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/
63 changes: 63 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 스프링부트 블로그 V2

## 1단계 기능
- 회원가입
- 로그인
- 회원정보 보기
- 회원정보 수정하기
- 게시글 작성하기
- 게시글 목록보기
- 게시글 상세보기
- 게시글 삭제하기
- 게시글 수정하기
- 댓글 작성하기
- 댓글 삭제하기

## 2단계 기능
- 유저네임 중복체크 (AJAX)
- 프로필 사진 등록
- 페이징하기
- 검색하기

## 3단계 기능
- 필터(Filter)
- 유효성검사(AOP)
- 비밀번호 암호화
- 인증검사(Interceptor)

## 테이블 쿼리
```sql
create database blogdb;
use blogdb;

create table user_tb (
id integer auto_increment,
created_at timestamp,
email varchar(20) not null,
password varchar(60) not null,
username varchar(20) not null unique,
profile varchar(100),
primary key (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

create table board_tb (
id integer auto_increment,
content varchar(10000),
created_at timestamp,
title varchar(100) not null,
user_id integer,
primary key (id),
constraint fk_board_user_id foreign key (user_id) references user_tb (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

create table reply_tb (
id integer auto_increment,
comment varchar(100) not null,
created_at timestamp,
board_id integer,
user_id integer,
primary key (id),
constraint fk_reply_board_id foreign key (board_id) references board_tb (id),
constraint fk_reply_user_id foreign key (user_id) references user_tb (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
```
6 changes: 6 additions & 0 deletions TEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 2. VIEW에서 모든 컨트롤러 요청을 완료하시오. (두번째 실습 과제)
- 회원가입
- 로그인
- 회원 패스워드 수정하기
- 글쓰기
- 글수정하기
48 changes: 48 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.14'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}

group = 'shop.mtcoding'
version = '0.0.1-SNAPSHOT'

java {
sourceCompatibility = '11'
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-mustache'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'com.mysql:mysql-connector-j'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'

// third party
implementation group: 'ch.simas.qlrm', name: 'qlrm', version: '1.7.1'
implementation group: 'org.mindrot', name: 'jbcrypt', version: '0.4'
}

tasks.named('test') {
systemProperty 'file.encoding', 'UTF-8'
useJUnitPlatform()
}

jar {
enabled = false
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions 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.2.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit c07cb0f

Please sign in to comment.