Sky Cherry 설치 가이드 (Windows 10) - PLAY-LAB/sky-cherry GitHub Wiki
구동 환경 설정
Install Git
- Download : https://git-scm.com/download/win
- Git 설치 가이드 : https://github.com/PLAY-LAB/sky-cherry/issues/105
Install Node.js (10.13.0 LTS)
- Download : https://nodejs.org/en/
- Node.js 설치 가이드 : https://github.com/PLAY-LAB/sky-cherry/issues/106
Install Geth
- Download : https://gethstore.blob.core.windows.net/builds/geth-windows-amd64-1.8.18-58632d44.exe
- 설치 가이드 : https://github.com/PLAY-LAB/sky-cherry/issues/109
Start Geth
geth --rpc --rinkeby (--datadir D:\Ethereum\rinkeby)
Install MongoDB
- Download : https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.4-signed.msi
- 설치 가이드 : https://github.com/PLAY-LAB/sky-cherry/issues/108
Start MongoDB
mkdir C:\mongodb\data\db\
cd "C:\Program Files\MongoDB\Server\4.0\bin"
mongod.exe --dbpath "C:\mongodb\data\db"
Install Robo 3T(MongoDB client)
- Download : https://download.robomongo.org/1.2.1/windows/robo3t-1.2.1-windows-x86_64-3e50a65.exe
- 설치 가이드 : https://github.com/PLAY-LAB/sky-cherry/issues/111
- 사용 가이드 : https://github.com/PLAY-LAB/sky-cherry/issues/112
8080 Port
Installing
Clone the repo
cd C:\
git clone https://github.com/PLAY-LAB/sky-cherry.git
cd sky-cherry
Install dependencies
npm install
cd backend
npm install
cd ..
cd frontend
npm install
cd ..
Set environment (vars)
- Slack에 있는 .env 복사하기
copy C:\sky-cherry\.env.example C:\sky-cherry\backend\.env
Start server
npm start
오류 대응 방법
BrowserslistError
- 오류 내용
{ BrowserslistError: C:\sky-cherry\sky-cherry\frontend contains both browserslist and package.json with browsers
at C:\sky-cherry\sky-cherry\frontend\node_modules\autoprefixer\node_modules\browserslist\node.js:189:15
at eachParent (C:\sky-cherry\sky-cherry\frontend\node_modules\autoprefixer\node_modules\browserslist\node.js:43:18)
at Object.findConfig (C:\sky-cherry\sky-cherry\frontend\node_modules\autoprefixer\node_modules\browserslist\node.js:172:20)
at Object.loadConfig (C:\sky-cherry\sky-cherry\frontend\node_modules\autoprefixer\node_modules\browserslist\node.js:126:37)
at browserslist (C:\sky-cherry\sky-cherry\frontend\node_modules\autoprefixer\node_modules\browserslist\index.js:194:22)
at Browsers.parse (C:\sky-cherry\sky-cherry\frontend\node_modules\autoprefixer\lib\browsers.js:61:16)
at new Browsers (C:\sky-cherry\sky-cherry\frontend\node_modules\autoprefixer\lib\browsers.js:52:30)
at loadPrefixes (C:\sky-cherry\sky-cherry\frontend\node_modules\autoprefixer\lib\autoprefixer.js:70:24)
at plugin (C:\sky-cherry\sky-cherry\frontend\node_modules\autoprefixer\lib\autoprefixer.js:81:24)
at LazyResult.run (C:\sky-cherry\sky-cherry\frontend\node_modules\postcss\lib\lazy-result.js:277:20)
at LazyResult.asyncTick (C:\sky-cherry\sky-cherry\frontend\node_modules\postcss\lib\lazy-result.js:192:32)
at LazyResult.asyncTick (C:\sky-cherry\sky-cherry\frontend\node_modules\postcss\lib\lazy-result.js:204:22)
at C:\sky-cherry\sky-cherry\frontend\node_modules\postcss\lib\lazy-result.js:197:27
name: 'BrowserslistError',
message:
'C:\\sky-cherry\\sky-cherry\\frontend contains both browserslist and package.json with browsers',
browserslist: true }
- 대응 방법
cd frontend
del browserslist
del browserslist.cmd
Backend 빌드 오류
- 오류 내용 .NET Framework
- 대응 방법
npm install --global --production windows-build-tools