Showing
1 changed file
with
13 additions
and
15 deletions
1 | # Faker Quiz | 1 | # Faker Quiz |
2 | 2 | ||
3 | -[TOC] | ||
4 | - | ||
5 | ## 1. 프로젝트 소개 | 3 | ## 1. 프로젝트 소개 |
6 | Faker Quiz는 프로게이머 Faker 선수의 기록을 퀴즈로 출제해주는 LINE 챗봇입니다.<br><br> | 4 | Faker Quiz는 프로게이머 Faker 선수의 기록을 퀴즈로 출제해주는 LINE 챗봇입니다.<br><br> |
7 | 데이터 출처 : [롤 인벤 기록실](http://lol.inven.co.kr/dataninfo/proteam/progamer.php?code=135) | 5 | 데이터 출처 : [롤 인벤 기록실](http://lol.inven.co.kr/dataninfo/proteam/progamer.php?code=135) |
8 | 6 | ||
9 | ## 2. 설치 방법 | 7 | ## 2. 설치 방법 |
10 | -**1.** Repository를 clone합니다. | 8 | +**1.** Repository를 clone합니다.<br> |
11 | 9 | ||
12 | ``` | 10 | ``` |
13 | $ git clone http://khuhub.khu.ac.kr/2019102225/FakerQuiz.git | 11 | $ git clone http://khuhub.khu.ac.kr/2019102225/FakerQuiz.git |
14 | ``` | 12 | ``` |
15 | 13 | ||
16 | -**2.** FakerQuiz repo로 이동하여 [letsencrypt](https://letsencrypt.org/ko/)를 clone합니다. | 14 | +**2.** FakerQuiz repo로 이동하여 [letsencrypt](https://letsencrypt.org/ko/)를 clone합니다.<br> |
17 | 15 | ||
18 | ``` | 16 | ``` |
19 | $ cd FakerQuiz/ | 17 | $ cd FakerQuiz/ |
20 | $ git clone https://github.com/letsencrypt/letsencrypt | 18 | $ git clone https://github.com/letsencrypt/letsencrypt |
21 | ``` | 19 | ``` |
22 | 20 | ||
23 | -**3.** SSL 인증서를 발급합니다. | 21 | +**3.** SSL 인증서를 발급합니다.<br> |
24 | 22 | ||
25 | ``` | 23 | ``` |
26 | $ ./letsencrypt/letsencrypt-auto certonly | 24 | $ ./letsencrypt/letsencrypt-auto certonly |
27 | ``` | 25 | ``` |
28 | 26 | ||
29 | -**4.** 필요한 node module을 install합니다. | 27 | +**4.** 필요한 node module을 install합니다.<br> |
30 | 28 | ||
31 | ``` | 29 | ``` |
32 | $ npm install | 30 | $ npm install |
... | @@ -34,27 +32,27 @@ $ npm install | ... | @@ -34,27 +32,27 @@ $ npm install |
34 | 32 | ||
35 | ## 3. 사용 방법 | 33 | ## 3. 사용 방법 |
36 | ### 3-1. 실행 방법 | 34 | ### 3-1. 실행 방법 |
37 | -**1.** [LINE Developers](https://developers.line.biz/en/)에 접속하여 Messaging API channel을 생성합니다. | 35 | +**1.** [LINE Developers](https://developers.line.biz/en/)에 접속하여 Messaging API channel을 생성합니다.<br> |
38 | -**2.** Messaging API settings에서 Webhook URL을 설정하고 Use webhook을 enable합니다. | 36 | +**2.** Messaging API settings에서 Webhook URL을 설정하고 Use webhook을 enable합니다.<br> |
39 | 37 | ||
40 | ``` | 38 | ``` |
41 | https://[yourURL]:23023/hook | 39 | https://[yourURL]:23023/hook |
42 | ``` | 40 | ``` |
43 | 41 | ||
44 | -**3.** Channel access token을 발급받습니다. | 42 | +**3.** Channel access token을 발급받습니다.<br> |
45 | -**4.** `app.js`를 열어 `domain`과 `TOKEN`을 입력합니다. | 43 | +**4.** `app.js`를 열어 `domain`과 `TOKEN`을 입력합니다.<br> |
46 | -**5.** `app.js`를 실행하고 Webhook URL을 Verify합니다. | 44 | +**5.** `app.js`를 실행하고 Webhook URL을 Verify합니다.<br> |
47 | 45 | ||
48 | ``` | 46 | ``` |
49 | $ node app.js | 47 | $ node app.js |
50 | ``` | 48 | ``` |
51 | 49 | ||
52 | -**6.** LINE 채널을 친구추가하고 작동을 확인합니다. | 50 | +**6.** LINE 채널을 친구추가하고 작동을 확인합니다.<br> |
53 | 51 | ||
54 | ### 3-2. 다른 선수의 퀴즈 만들기 | 52 | ### 3-2. 다른 선수의 퀴즈 만들기 |
55 | -**1.** [롤 인벤 기록실](http://lol.inven.co.kr/dataninfo/match/playerList.php)에서 원하는 선수의 기록실 링크를 복사합니다. | 53 | +**1.** [롤 인벤 기록실](http://lol.inven.co.kr/dataninfo/match/playerList.php)에서 원하는 선수의 기록실 링크를 복사합니다.<br> |
56 | -**2.** `app.js`에서 `url`을 복사한 링크로 교체합니다. | 54 | +**2.** `app.js`에서 `url`을 복사한 링크로 교체합니다.<br> |
57 | -**3.** [3-1](http://khuhub.khu.ac.kr/2019102225/FakerQuiz#3-1-%EC%8B%A4%ED%96%89-%EB%B0%A9%EB%B2%95)의 실행 과정을 수행합니다. | 55 | +**3.** [3-1](http://khuhub.khu.ac.kr/2019102225/FakerQuiz#3-1-%EC%8B%A4%ED%96%89-%EB%B0%A9%EB%B2%95)의 실행 과정을 수행합니다.<br> |
58 | 56 | ||
59 | ## 4. 라이센스 | 57 | ## 4. 라이센스 |
60 | MIT License에 따라 배포됩니다. 자세한 내용은 `LICENSE`를 확인하세요.<br> | 58 | MIT License에 따라 배포됩니다. 자세한 내용은 `LICENSE`를 확인하세요.<br> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment