2.4 helloworld 프로젝트 실습
설치를 완료했으니 첫 번째 프로젝트로 helloworld를 만들어 보자. 간단히 수정도 해보자. 설치 후 테스트했던 test 폴더를 빠져나와 Projects 폴더로 이동한다.
상위 폴더로 이동
~/Projects/test$ cd ..
~/Projects$
노트 위에 "~" 물결 표시는 홈 디렉터리를 의미한다. 따라서 ~/Projects는 현재 사용자의 홈 디렉터리(~) 밑에 있는 Projects 디렉터리를 뜻한다.
다음과 같이 셸에서 meteor create helloworld를 입력해서 helloworld 프로젝트를 생성하자. 프로젝트 생성 후 해당 프로젝트명의 디렉터리로 이동해서 어떤 파일이 있는지 확인해 보자.
~/Projects$ meteor create helloworld
Created a new Meteor app in 'helloworld'.
To run your new app:
cd helloworld
meteor npm install
meteor
If you are new to Meteor, try some of the learning resources here:
https://www.meteor.com/learn
meteor create --bare to create an empty app.
meteor create --full to create a scaffolded app.
~/Projects$ cd helloworld
~/Projects/helloworld$