
[Node.js/vue.js] 영화정보 페이지 제작(frontend, backend 연동)
Node.js
2021. 9. 17. 17:36
vs code 터미널에서 작성 작업 디렉토리 생성 $ mkdir movie 프론트엔드와 백엔드 작업을 하게 될 작업디렉토리를 생성한다. Frontend 작업디렉토리 생성 및 front 서버 실행 $ npm install -g yarn $ npm install -g @vue/cli $ vue create frontend $ cd frontend $ npm run serve npm 명령으로 vue.js 개발을 위해 필요한 패키지를 설치한다. 그리고 vue create 명령을 이용해 frontend 디렉토리를 생성하고, 새로 생성된 frontend 프로젝트 디렉토리에서 서버를 실행하고 브라우저에서 http://localhost:8080에 접속하면 다음과 같은 페이지를 확인할 수 있다. 위와 같이 페이지가 정상..