개발이야기/그루비(Groovy)
Grails 공부 정리
코바
2014. 3. 15. 00:55
- 참고사항
- Grails 2.3.7은 JDK 8에서 grails console 명령어 불가
- GVM을 사용하면 쉽게 설치 가능하다.
- GVM 공식 사이트
- http://gvmtool.net/
- 설치 방법
- curl -s get.gvmtool.net | bash
- Grails 설치 방법
- gvm install grails
- Grails로 만드는 helloworld
- Quick start 참조사이트
- http://grails.org/doc/latest/guide/gettingStarted.html
- 프로젝트 생성
- grails create-app helloworld
- 컨트롤러 생성
- 프로젝트 생성된 폴더로 이동
- cd helloworld
- 컨트롤러 생성
- grails create-controller hello
- 서버 시작
- grails run-app
- 테스트 사이트 접속
- http://localhost:8080/helloworld/