Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
df33315
README.md 추가
devkjc Apr 28, 2019
b372e37
feat(treasure): create Treasure entity
doyoung0205 Apr 28, 2019
e396a55
Merge pull request #1 from kjc3590/feature/treasure
doyoung0205 Apr 28, 2019
4ca1664
feat(DateObject): create DateObject entity
doyoung0205 Apr 29, 2019
4bfb36f
feat(mission): create Mission entity
Apr 29, 2019
65d439c
feat(Hunter): create Hunter entity
Apr 29, 2019
e69e156
feat(util.Check) Create Common Check Class
Apr 29, 2019
778f39e
test(Hunter): create Hunter Test
Apr 29, 2019
acc07b8
feat(Mission): create Mission entity
Apr 29, 2019
e13d7f5
feat(Misson): create Mission entity
Apr 29, 2019
73576bb
Merge pull request #3 from kjc3590/feature/mission2
kjc3590 Apr 29, 2019
6337d5e
Merge pull request #2 from kjc3590/feature/Hunter
kjc3590 Apr 29, 2019
b627180
chore(Treasure) create entity TargetPoint,RunningTime
doyoung0205 Apr 29, 2019
c897a8a
feat(Hunter) HunterPw validate modify
Apr 29, 2019
8cfc07b
Merge pull request #4 from kjc3590/feature/treasure
doyoung0205 Apr 29, 2019
0e0e9a9
test
doyoung0205 Apr 29, 2019
ca2e551
Merge pull request #5 from kjc3590/feature/treasure
kjc3590 Apr 29, 2019
20f7277
Merge pull request #6 from kjc3590/feature/Hunter
kjc3590 Apr 29, 2019
87cc290
chore(MissionPoint, MissionLevel): Modify MissionPoint, MissionLevel …
Apr 30, 2019
7db0d90
test(Mission): create Mission Test
Apr 30, 2019
c7040c5
fix(hunter) hunter error fix
Apr 30, 2019
c0323c0
feat(Hint) > hint domain create
92kimyoungchan Apr 30, 2019
781f124
test(Hint) hint test create
92kimyoungchan Apr 30, 2019
86f2511
Merge pull request #8 from kjc3590/feature/Hint
kjc3590 Apr 30, 2019
3f2335b
Merge pull request #7 from kjc3590/feature/mission
kjc3590 Apr 30, 2019
dd778e9
test(Hint) -> test
92kimyoungchan Apr 30, 2019
9f1c7e7
Merge pull request #9 from kjc3590/feature/Hint
kjc3590 Apr 30, 2019
91e0426
docs readMe
doyoung0205 Apr 30, 2019
e905074
Merge pull request #10 from kjc3590/feature/treasure
doyoung0205 Apr 30, 2019
24c9de1
fix(Hunter) Hunter Review reflection
May 3, 2019
be1bc59
feat all
doyoung0205 May 3, 2019
da89f1d
(test) test code allocating mission
doyoung0205 May 3, 2019
ae11a75
feat
doyoung0205 May 3, 2019
7264256
docs fix Unifying problems and missions into one term for a mission (…
doyoung0205 May 4, 2019
153926d
add(mission) Add Dummy mission data
May 6, 2019
b5df1d2
Merge pull request #11 from kjc3590/feature/mission
doyoung0205 May 6, 2019
0e319bc
feat(Hunter) create hunter service
devkjc May 6, 2019
45fc4f6
Merge remote-tracking branch 'origin/find-by-hint' into find-by-hint
devkjc May 6, 2019
7129a9f
add(mission) Add Dummy mission data
92kimyoungchan May 6, 2019
0bf0d45
(feat) QRCodeSample, daumMap
doyoung0205 May 7, 2019
6a55ae4
Merge branch 'find-by-hint' of https://github.com/kjc3590/ddd-project…
doyoung0205 May 7, 2019
65cad13
no message
doyoung0205 May 7, 2019
8551887
* docs(모델링): 헌터, 보물, 미션 모델링 README에 추가
doyoung0205 May 7, 2019
01a00d0
test(mission) : create Mission test
May 7, 2019
d7cff6d
fix(mission): fix mission entity
May 7, 2019
dc69e7f
add : Add web dependency
May 7, 2019
85a91f4
add(mission): add Dummy Misssion Data
May 7, 2019
e0db5cb
feat(mission): create mission service
May 7, 2019
928b18d
test(mission): create Mission Test
May 7, 2019
5cd2d3b
feat(mission): create Mission Controller
May 7, 2019
3c2cde5
chore > build gradle modifty
May 7, 2019
2b80309
Merge branch 'find-by-hint' of https://github.com/kjc3590/ddd-project…
May 7, 2019
67b0ecf
Merge branch 'find-by-hint' of https://github.com/kjc3590/ddd-project…
May 7, 2019
2b9d2e7
feat(Hunter) NaverLogin
May 7, 2019
23a91d7
style> source fomating
May 7, 2019
23a018d
feat(Hunter) > naverLogin Controller
May 7, 2019
b50f5da
Merge branch 'find-by-hint' into feature/mission
ppiyo5 May 7, 2019
4a0f81e
Merge pull request #13 from kjc3590/feature/mission
ppiyo5 May 7, 2019
3a7cf80
refactor,test(Hunter) >Create Hunter PostTest
May 7, 2019
94257bb
chore(build) modify build error
May 7, 2019
afac6cd
*docs README 문서 수정
doyoung0205 May 7, 2019
827c1df
Merge branch 'find-by-hint' of https://github.com/kjc3590/ddd-project…
92kimyoungchan May 7, 2019
d719895
add(Hint)
92kimyoungchan May 7, 2019
25154f0
Merge pull request #12 from kjc3590/feature/Hint
kjc3590 May 7, 2019
fa5825f
feat(Hint) remove
92kimyoungchan May 7, 2019
580f3ae
Merge branch 'find-by-hint' of https://github.com/kjc3590/ddd-project…
May 7, 2019
a1ee2f7
Merge branch 'find-by-hint' into feature/Hunter
kjc3590 May 7, 2019
9255b16
Merge pull request #16 from kjc3590/feature/Hunter
kjc3590 May 7, 2019
ef21982
Merge pull request #15 from kjc3590/feature/Hint
kjc3590 May 7, 2019
cc92fa3
Merge branch 'find-by-hint' of https://github.com/kjc3590/ddd-project…
May 7, 2019
8cd05c9
Merge branch 'find-by-hint' into release/step2
kjc3590 May 14, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ HELP.md

### VS Code ###
.vscode/
gradle/wrapper/gradle-wrapper.properties
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-test'
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.projectlombok:lombok'

// webjars
implementation 'org.webjars:webjars-locator:0.36'
implementation 'org.webjars:jquery:3.4.0'
Expand All @@ -39,5 +40,4 @@ dependencies {
compile group: 'com.google.zxing', name: 'core', version: '3.3.0'
// https://mvnrepository.com/artifact/com.google.zxing/javase
compile group: 'com.google.zxing', name: 'javase', version: '3.3.0'

}
5 changes: 0 additions & 5 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package io.github.wotjd243.findbyhint.hint.application;

import org.springframework.stereotype.Service;

//TODO 1. TargetPoint 생성시점
//TODO 2. Hint Entity에서 쌓인 좌표들을 Delete 해준다

@Service
public class HintService {

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

public class Hunter {

// TODO (1)‘헌터’는 하루에 미션 하나를 풀 수 있고 기회는 3번이다.
// TODO (2)‘헌터' 는 미션 포인트를 100점 모으면 문제를 풀 수 있는 총알을 하나 얻는다.
// TODO (3)‘헌터' 가 미션을 풀 수있는 기회의 수는 총알이다. 관련된 객체 생성하기.

private final HunterId hunterId;

private final HunterPw hunterPw;
Expand All @@ -18,13 +14,50 @@ public class Hunter {

private final HunterPoint hunterPoint;

Hunter(String hunterId, String hunterPw, String hunterName, String hunterPicturePath, String hunterPictureName, int hunterPoint) {
private int hunterBullet;

public Hunter(String hunterId, String hunterPw, String hunterName, String hunterPicturePath, String hunterPictureName, int hunterPoint, int hunterBullet) {
this.hunterId = new HunterId(hunterId);
this.hunterPw = new HunterPw(hunterPw);
this.hunterName = new HunterName(hunterName);
this.hunterPicturePath = hunterPicturePath;
this.hunterPictureName = new HunterPictureName(hunterPictureName);
this.hunterPoint = new HunterPoint(hunterPoint);
this.hunterBullet = hunterBullet;
}

public void decreaseOneBullet() {

int aa;

if (hunterBullet < 1) {
throw new IllegalStateException();
}
hunterBullet--;
}

public void increaseOneBullet() {
if (hunterBullet >= 3) {
log.println("이미 총알이 3개입니다.");
throw new IllegalStateException();
}
hunterBullet++;
}

public void buyOneBullet() {

log.println("before_hunterPoint : " + hunterPoint.getHunterPoint());
log.println("before_hunterBullet : " + hunterBullet);

if (hunterPoint.bulletBuyPointCheck()) {
hunterPoint.hunterPointMinus(100);
increaseOneBullet();
} else {
log.println("포인트가 부족합니다.");
throw new IllegalStateException();
}
log.println("after_hunterPoint : " + hunterPoint.getHunterPoint());
log.println("after_hunterBullet : " + hunterBullet);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package io.github.wotjd243.findbyhint.hunter.domain;

public class HunterBullet {

private int hunterBullet;

public HunterBullet(int hunterBullet) {

this.hunterBullet = hunterBullet;

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,29 @@ public HunterPoint(int hunterPoint) {
}

private void validation(int hunterPoint) {
Check.numberLimit(hunterPoint, 99999);
}

Check.numberLimit(hunterPoint,99999);
public boolean bulletBuyPointCheck() {
if (hunterPoint > 100) {
return true;
} else {
return false;
}
}

public HunterPoint hunterPointMinus(int minus) {
hunterPoint = hunterPoint - minus;
return new HunterPoint(hunterPoint);
}


public HunterPoint hunterPointPlus(int plus) {
hunterPoint = hunterPoint + plus;
return new HunterPoint(hunterPoint);
}

public int getHunterPoint() {
return hunterPoint;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package io.github.wotjd243.findbyhint.hunter.ui;

import io.github.wotjd243.findbyhint.hunter.domain.Hunter;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@Controller
public class HunterController {

@GetMapping("/login")
public String naverLogin(Model model) {

return "/login";
}

@PostMapping("/buyOneBullet")
public String buyOneBullet(Hunter hunter) {
hunter.buyOneBullet();

// 추후 화면 개발 후 변경
return "redirect:/login";
}



}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
@Repository
public interface MissionRepository {
Optional<Mission> findById(final MissionLevel level);

// Optional<Mission> findByLevel(final String level);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package io.github.wotjd243.findbyhint.mission.ui;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class MissionController {

@GetMapping("/")
public void index() {

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package io.github.wotjd243.findbyhint.mission.ui;

public class MissionRestController {
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package io.github.wotjd243.findbyhint.treasure.domain;



import io.github.wotjd243.findbyhint.util.check.DateObject;

import java.time.LocalDate;
Expand Down
30 changes: 30 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1 +1,31 @@
server.port=8080
spring.profiles.active=local
spring.thymeleaf.cache=false
spring.mustache.suffix=.html

logging.level.io=info
logging.level.org.hibernate=info
logging.level.org.springframework.web=info
logging.level.org.springframework.security=info

# spring.jpa.database=mysql
# spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
# spring.datasource.driver-class-name=com.mysql.jdbc.Driver
# spring.datasource.url=jdbc:mysql:
# spring.datasource.username=
# spring.datasource.password=
# spring.session.store-type=none
# spring.jpa.hibernate.ddl-auto=update
# spring.jpa.generate-ddl=true
# spring.jpa.show-sql=true

# errorpage custom
# server.error.whitelabel.enabled=false

# fileupload size
spring.servlet.multipart.max-file-size=-1
spring.servlet.multipart.max-request-size=-1

# sql format
# spring.jpa.properties.hibernate.use_sql_comments=true
# spring.jpa.properties.hibernate.format_sql=true
60 changes: 60 additions & 0 deletions src/main/resources/static/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Page Not Found</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>

* {
line-height: 1.2;
margin: 0;
}

html {
color: #888;
display: table;
font-family: sans-serif;
height: 100%;
text-align: center;
width: 100%;
}

body {
display: table-cell;
vertical-align: middle;
margin: 2em auto;
}

h1 {
color: #555;
font-size: 2em;
font-weight: 400;
}

p {
margin: 0 auto;
width: 280px;
}

@media only screen and (max-width: 280px) {

body, p {
width: 95%;
}

h1 {
font-size: 1.5em;
margin: 0 0 0.3em;
}

}

</style>
</head>
<body>
<h1>Page Not Found</h1>
<p>Sorry, but the page you were trying to view does not exist.</p>
</body>
</html>
<!-- IE needs 512+ bytes: https://blogs.msdn.microsoft.com/ieinternals/2010/08/18/friendly-http-error-pages/ -->
19 changes: 19 additions & 0 deletions src/main/resources/static/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) HTML5 Boilerplate

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
12 changes: 12 additions & 0 deletions src/main/resources/static/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Please read: https://msdn.microsoft.com/en-us/library/ie/dn455106.aspx -->
<browserconfig>
<msapplication>
<tile>
<square70x70logo src="tile.png"/>
<square150x150logo src="tile.png"/>
<wide310x150logo src="tile-wide.png"/>
<square310x310logo src="tile.png"/>
</tile>
</msapplication>
</browserconfig>
1 change: 1 addition & 0 deletions src/main/resources/static/css/all.min.css

Large diffs are not rendered by default.

Loading