Showing
1 changed file
with
7 additions
and
7 deletions
| ... | @@ -39,22 +39,22 @@ | ... | @@ -39,22 +39,22 @@ |
| 39 | 39 | ||
| 40 | ### Installation | 40 | ### Installation |
| 41 | 1. repository를 clone한다. | 41 | 1. repository를 clone한다. |
| 42 | -```sh | 42 | +``` |
| 43 | git clone http://khuhub.khu.ac.kr/Crypto/Crypto_trade_bot.git | 43 | git clone http://khuhub.khu.ac.kr/Crypto/Crypto_trade_bot.git |
| 44 | ``` | 44 | ``` |
| 45 | 2. NPM package들을 설치한다. | 45 | 2. NPM package들을 설치한다. |
| 46 | -```sh | 46 | +``` |
| 47 | npm install | 47 | npm install |
| 48 | ``` | 48 | ``` |
| 49 | 3. 해당 프로젝트는 aws ec2와 ssl인증서를 사용한다. 개인 PC에서 작동하려면 domain과 sslport를 지우고 express.app을 사용해서 서버를 작동시키면 된다.(이 경우 4번은 생략) | 49 | 3. 해당 프로젝트는 aws ec2와 ssl인증서를 사용한다. 개인 PC에서 작동하려면 domain과 sslport를 지우고 express.app을 사용해서 서버를 작동시키면 된다.(이 경우 4번은 생략) |
| 50 | 4. 최상위 폴더의 index.js의 domain과 sslport를 본인 domain과 sslport로 변경한다. | 50 | 4. 최상위 폴더의 index.js의 domain과 sslport를 본인 domain과 sslport로 변경한다. |
| 51 | -```js | 51 | +``` |
| 52 | const domain = "{your domain}"; | 52 | const domain = "{your domain}"; |
| 53 | const sslport = {your port}; | 53 | const sslport = {your port}; |
| 54 | ``` | 54 | ``` |
| 55 | 5. https://cloud.mongodb.com/ 가입 후 db connect url을 복사한다. | 55 | 5. https://cloud.mongodb.com/ 가입 후 db connect url을 복사한다. |
| 56 | 6. /config 폴더에 dev.js 파일 추가 | 56 | 6. /config 폴더에 dev.js 파일 추가 |
| 57 | -```js | 57 | +``` |
| 58 | module.exports = { | 58 | module.exports = { |
| 59 | mongoURI:"복사한 connect url" | 59 | mongoURI:"복사한 connect url" |
| 60 | } | 60 | } |
| ... | @@ -63,15 +63,16 @@ const sslport = {your port}; | ... | @@ -63,15 +63,16 @@ const sslport = {your port}; |
| 63 | 8. https://developers.line.biz/en/services/messaging-api/ 에서 line message-api를 생성하고 channel access token을 복사한다. | 63 | 8. https://developers.line.biz/en/services/messaging-api/ 에서 line message-api를 생성하고 channel access token을 복사한다. |
| 64 | 9. 3번에서 입력한 도메인을 webhook url로 설정해준다.(4번을 생략했다면 webhook url에 본인 네트워크망IP를 입력) | 64 | 9. 3번에서 입력한 도메인을 webhook url로 설정해준다.(4번을 생략했다면 webhook url에 본인 네트워크망IP를 입력) |
| 65 | 10. 프로젝트 최상위 폴더에 .env 파일 추가 | 65 | 10. 프로젝트 최상위 폴더에 .env 파일 추가 |
| 66 | -```env | 66 | +``` |
| 67 | access_key={upbit에서 발급 받은 access_key} | 67 | access_key={upbit에서 발급 받은 access_key} |
| 68 | secret_key={upbit에서 발급 받은 secret_key} | 68 | secret_key={upbit에서 발급 받은 secret_key} |
| 69 | token={line message-api 의 channel access token} | 69 | token={line message-api 의 channel access token} |
| 70 | userid={테스트 알림을 받을 line userid} | 70 | userid={테스트 알림을 받을 line userid} |
| 71 | ``` | 71 | ``` |
| 72 | + | ||
| 72 | ## Usage | 73 | ## Usage |
| 73 | 프로젝트 최상위 폴더에서 명령어 실행 | 74 | 프로젝트 최상위 폴더에서 명령어 실행 |
| 74 | -```sh | 75 | +``` |
| 75 | nodemon | 76 | nodemon |
| 76 | ``` | 77 | ``` |
| 77 | 78 | ||
| ... | @@ -99,7 +100,6 @@ const sslport = {your port}; | ... | @@ -99,7 +100,6 @@ const sslport = {your port}; |
| 99 | ## License | 100 | ## License |
| 100 | [MIT License](http://khuhub.khu.ac.kr/Crypto/Crypto_trade_bot/blob/master/LICENSE) | 101 | [MIT License](http://khuhub.khu.ac.kr/Crypto/Crypto_trade_bot/blob/master/LICENSE) |
| 101 | 102 | ||
| 102 | -<!-- CONTACT --> | ||
| 103 | ## Contact | 103 | ## Contact |
| 104 | 104 | ||
| 105 | 이름 - [@김다빈,이가원](https://github.com/dogsoft0937) - dogsoft0937@khu.ac.kr,juneee0864@gmail.com <br/> | 105 | 이름 - [@김다빈,이가원](https://github.com/dogsoft0937) - dogsoft0937@khu.ac.kr,juneee0864@gmail.com <br/> | ... | ... |
-
Please register or login to post a comment