Showing
1 changed file
with
7 additions
and
17 deletions
1 | # Faker Quiz | 1 | # Faker Quiz |
2 | + | ||
2 | ## 1. 프로젝트 소개 | 3 | ## 1. 프로젝트 소개 |
3 | Faker Quiz는 프로게이머 Faker 선수의 기록을 퀴즈로 출제해주는 LINE 챗봇입니다.<br><br> | 4 | Faker Quiz는 프로게이머 Faker 선수의 기록을 퀴즈로 출제해주는 LINE 챗봇입니다.<br><br> |
4 | 데이터 출처 : [롤 인벤 기록실](http://lol.inven.co.kr/dataninfo/proteam/progamer.php?code=135) | 5 | 데이터 출처 : [롤 인벤 기록실](http://lol.inven.co.kr/dataninfo/proteam/progamer.php?code=135) |
5 | 6 | ||
6 | ## 2. 설치 방법 | 7 | ## 2. 설치 방법 |
7 | 1. Repository를 clone합니다. | 8 | 1. Repository를 clone합니다. |
8 | - | 9 | +```{.bash} |
9 | -``` | ||
10 | $ git clone http://khuhub.khu.ac.kr/2019102225/FakerQuiz.git | 10 | $ git clone http://khuhub.khu.ac.kr/2019102225/FakerQuiz.git |
11 | ``` | 11 | ``` |
12 | - | ||
13 | 2. FakerQuiz repo로 이동하여 [letsencrypt](https://letsencrypt.org/ko/)를 clone합니다. | 12 | 2. FakerQuiz repo로 이동하여 [letsencrypt](https://letsencrypt.org/ko/)를 clone합니다. |
14 | - | 13 | +```{.bash} |
15 | -``` | ||
16 | $ cd FakerQuiz/ | 14 | $ cd FakerQuiz/ |
17 | $ git clone https://github.com/letsencrypt/letsencrypt | 15 | $ git clone https://github.com/letsencrypt/letsencrypt |
18 | ``` | 16 | ``` |
19 | - | ||
20 | 3. SSL 인증서를 발급합니다. | 17 | 3. SSL 인증서를 발급합니다. |
21 | - | 18 | +```{.bash} |
22 | -``` | ||
23 | $ ./letsencrypt/letsencrypt-auto certonly | 19 | $ ./letsencrypt/letsencrypt-auto certonly |
24 | ``` | 20 | ``` |
25 | - | ||
26 | 4. 필요한 node module을 install합니다. | 21 | 4. 필요한 node module을 install합니다. |
27 | - | 22 | +```{.bash} |
28 | -``` | ||
29 | $ npm install | 23 | $ npm install |
30 | ``` | 24 | ``` |
31 | 25 | ||
... | @@ -33,19 +27,15 @@ $ npm install | ... | @@ -33,19 +27,15 @@ $ npm install |
33 | ### 3-1. 실행 방법 | 27 | ### 3-1. 실행 방법 |
34 | 1. [LINE Developers](https://developers.line.biz/en/)에 접속하여 Messaging API channel을 생성합니다. | 28 | 1. [LINE Developers](https://developers.line.biz/en/)에 접속하여 Messaging API channel을 생성합니다. |
35 | 2. Messaging API settings에서 Webhook URL을 설정하고 Use webhook을 enable합니다. | 29 | 2. Messaging API settings에서 Webhook URL을 설정하고 Use webhook을 enable합니다. |
36 | - | 30 | +```{.no-highlight} |
37 | -``` | ||
38 | https://[yourURL]:23023/hook | 31 | https://[yourURL]:23023/hook |
39 | ``` | 32 | ``` |
40 | - | ||
41 | 3. Channel access token을 발급받습니다. | 33 | 3. Channel access token을 발급받습니다. |
42 | 4. `app.js`를 열어 `domain`과 `TOKEN`을 입력합니다. | 34 | 4. `app.js`를 열어 `domain`과 `TOKEN`을 입력합니다. |
43 | 5. `app.js`를 실행하고 Webhook URL을 Verify합니다. | 35 | 5. `app.js`를 실행하고 Webhook URL을 Verify합니다. |
44 | - | 36 | +```{.bash} |
45 | -``` | ||
46 | $ node app.js | 37 | $ node app.js |
47 | ``` | 38 | ``` |
48 | - | ||
49 | 6. LINE 채널을 친구추가하고 작동을 확인합니다. | 39 | 6. LINE 채널을 친구추가하고 작동을 확인합니다. |
50 | 40 | ||
51 | ### 3-2. 다른 선수의 퀴즈 만들기 | 41 | ### 3-2. 다른 선수의 퀴즈 만들기 | ... | ... |
-
Please register or login to post a comment