You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-8Lines changed: 44 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,50 @@ A short, concise tutorial on the popular front-end framework Vue.js. Written for
16
16
#### Installation and Usage <aname="installation"></a>
17
17
Vue.js is tremendously simple to install and use. Although we will be using the Vue command line interface (vue-cli), you can get started with Vue in 3 different ways.
18
18
19
-
**CDN:** <br>
20
-
Import Vue.js into your `index.html` file using the `<script>` tag. <br>
21
-
22
-
```html
23
-
<!-- development version with alarms and alerts -->
\* As a note: in the `/dist` folder of the `vue` npm package, there are many other versions that refer to different builds of Vue.js. We will only be using the Full build. For more information see [here](https://vuejs.org/v2/guide/installation.html#Explanation-of-Different-Builds)
48
+
<br><br>
49
+
**Vue-CLI:** <br>
50
+
This is the method we will most often use. The Vue-CLI allows us to quickly create Single Page Applications with built in templates.
51
+
Start by installing the Vue-CLI module from NPM
52
+
53
+
```bash
54
+
$ sudo npm install -g vue-cli
55
+
```
56
+
57
+
Create your project using the CLI with the command `vue init <template-name> <project-name>` <br>
58
+
Ex:
59
+
```bash
60
+
$ vue init webpack-simple myFirstVueProject
61
+
```
26
62
27
-
28
63
<br>
29
64
**JSFiddle:** <br>
30
65
You can play around with Vue.js in [JSFiddle's Hello World Example](https://jsfiddle.net/chrisvfritz/50wL7mdz/)
@@ -39,6 +74,7 @@ A short, concise tutorial on the popular front-end framework Vue.js. Written for
39
74
40
75
41
76
77
+
42
78
### Resources <aname="resources"></a>
43
79
Vue.js is one of the better documented frameworks out there. Regardless, I have compiled a list of my favorite Vue.js documentations/tutorials while writing this tutorial.
44
80
+**[Vue.js Official Documentation](https://vuejs.org/)**
0 commit comments