IBM Cloud 계정 생성을 위해 등록합니다.
Python
을 설치합니다.
Pipenv
Python 패키징 툴을 설치합니다.
윈도우 파워쉘 이용해서 설치
Node.js
를 설치합니다.
Yarn
을 설치합니다.
프로젝트 경로
C:\\Users\\hy940\\IBM>
.env 파일 (notepad++ 사용)
STT_API_KEY=5l_3czEdJcoAXHJs1um7L8F3lBXLhHmtjswjw1EnKKEe
STT_URL=https://api.kr-seo.speech-to-text.watson.cloud.ibm.com/instances/cf30b990-3f99-44e7-a683-8fa383d4c899
TRANSLATE_API_KEY=ZPKckJsI1Gf07rFrNOi2dOxtvpQKd6DS4HyRvy1_7XZ2
TRANSLATE_URL=https://api.us-south.language-translator.watson.cloud.ibm.com/instances/b9d069d0-31bd-4703-bace-2b4fbfa2e297
COS_API_KEY=c84Rav-37FYk0dpEHmys-telrP0cVUPibz5Fg5zuNm4o
COS_IAM_ROLE_CRN=crn:v1:bluemix:public:iam::::serviceRole:Writer
COS_ENDPOINT=s3.seo.ap.cloud-object-storage.appdomain.cloud
COS_BUCKET_NAME=cloud-object-storage-w5-cos-standard-yjo
서버 구축
window에는 fcntl 이 import 안된다해서 아래링크 참고했는데 계속 이런 문제가 발생할 것 같아서 아래 앱 설치
curl -o- <https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh> | bash
설치 후 파일 없어서 겁나 해맸는데
~/.bash_profile
공식 문서에 라고 함
Running either of the above commands downloads a script and runs it. The script clones the nvm repository to ~/.nvm, and attempts to add the source lines from the snippet below to the correct profile file (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).
이후 https://d2fault.github.io/2018/04/30/20180430-install-and-upgrade-nodejs-or-npm