Sky Cherry 설치 가이드 (Windows 10) - PLAY-LAB/sky-cherry GitHub Wiki

구동 환경 설정

Install Git

Install Node.js (10.13.0 LTS)

Install Geth

Start Geth

geth --rpc --rinkeby (--datadir D:\Ethereum\rinkeby)

Install MongoDB

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)

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