Skip to content

Latest commit

 

History

History
99 lines (63 loc) · 1.09 KB

03_Vue_CLI.md

File metadata and controls

99 lines (63 loc) · 1.09 KB

Vue CLI



Getting started with Vue CLI


Installation

npm install -g @vue/cli

Start project

vue create [PROJECT_NAME]

Compiles and hot-reloads for development

$ npm run serve

 INFO  Starting development server...
98% after emitting CopyPlugin

 DONE  Compiled successfully in 3520ms                                                               9:50:57 AM


  App running at:
  - Local:   http://localhost:8080/ 
  - Network: http://192.168.0.5:8080/

  Note that the development build is not optimized.
  To create a production build, run npm run build.

Install axios

npm i axios

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint


+

Component 를 만들었을 때 해야 할 틀 (에 박힌) 일

<template>
  <div>

  </div>
</template>

<script>
export default {
    name: 'HelloName',
    data: function() {
        return {
            
        }
    }
}
</script>

<style>

</style>