# Java-Service-Tree-Framework-Frontend-Web ## Installation 프로젝트를 설정하려면 다음 명령을 실행하세요. ```shell npm install --save-dev --force grunt-cli grunt grunt-contrib-concat grunt-serve grunt-contrib-less grunt-contrib-watch grunt-contrib-uglify grunt-includes grunt-image grunt-contrib-jshint grunt-jscs grunt-contrib-clean grunt-contrib-csslint grunt-bootlint grunt-notify grunt-text-replace grunt-contrib-connect grunt-connect-proxy serve-static grunt-contrib-compass --save-exact prettier ``` ## Required Packages 이 프로젝트는 다음 패키지를 필요로 합니다. ```text grunt-cli grunt grunt-contrib-concat grunt-serve grunt-contrib-less grunt-contrib-watch grunt-contrib-uglify grunt-includes grunt-image grunt-contrib-jshint grunt-jscs grunt-contrib-clean grunt-contrib-csslint grunt-bootlint grunt-notify grunt-text-replace grunt-contrib-connect grunt-connect-proxy serve-static grunt-contrib-compass prettier ``` 윈도우 경우 : 커맨드 실행 ( 관리자 권한으로 실행 ) Set-ExecutionPolicy RemoteSigned -> Y 계정이 admin 이 아닌 경우 notfound ( grunt ) 일 가능성이 있습니다. 이 경우는 아래와 같은 명령어를 실행 후 grunt server 를 하세요 ```shell npm install -g --save-dev --force grunt-cli grunt grunt-contrib-concat grunt-serve grunt-contrib-less grunt-contrib-watch grunt-contrib-uglify grunt-includes grunt-image grunt-contrib-jshint grunt-jscs grunt-contrib-clean grunt-contrib-csslint grunt-bootlint grunt-notify grunt-text-replace grunt-contrib-connect grunt-connect-proxy serve-static grunt-contrib-compass --save-exact prettier ``` MAC 에서 nodejs 가 버전이 높은 경우는 아래 명령어 실행 ```shell npm install -g --save-dev --force grunt-cli grunt grunt-contrib-concat grunt-serve grunt-contrib-less grunt-contrib-watch grunt-contrib-uglify grunt-includes grunt-contrib-jshint grunt-jscs grunt-contrib-clean grunt-contrib-csslint grunt-bootlint grunt-notify grunt-text-replace grunt-contrib-connect grunt-connect-proxy serve-static grunt-contrib-compass --save-exact prettier ``` 설치 이후. grunt server 실행 --- 제일 먼저 프로젝트를 git clone 한 후, vscode 또는 intellij에서 폴더를 열고 node.js가 없다면 먼저 설치했습니다. windows (10이상)에서 설치할 때는 download nodejs를 검색해서 공식 사이트에서 windows installer를 다운받아 설치했고, mac에서는 brew를 이용해 `brew service install node` 명령어로 설치했습니다. 프로젝트 폴더에서 터미널을 열고 readme에 적힌 명령어를 `npm install ~` 을 실행했습니다. > Fatal error: Unable to find local grunt. grunt server 실행 시 위와 같은 에러가 발생하면 `npm install grunt --save-dev` 명령어를 실행했습니다. > Proxy error: ECONNREFUSED middleware-proxy를 실행하지 않고 단독 실행시 위와 같은 에러가 발생합니다. middleware-proxy를 인텔리제이에서 git clone받아서 실행함으로써 해결했습니다. > Running "connect:server:keepalive" (connect) task Waiting forever... .. 생략... Started connect web server on http://localhost:80 Backend-Core, Engine-Fire를 실행한 뒤 http://localhost:80으로 접속하면 로그인 화면이 나타났습니다.