forked from girlscript/winter-of-contributing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request girlscript#537 from RIYANSHGARG/Frontend_Web_Devel…
…opment_React_Angular_Vue/ Installation using NPM and about Vue CLI Installation using NPM and about Vue CLI
- Loading branch information
Showing
1 changed file
with
86 additions
and
0 deletions.
There are no files selected for viewing
86 changes: 86 additions & 0 deletions
86
Frontend_Web_Development_React_Angular_Vue/Vue/Week 1/Installation_of_Vue.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
 | ||
|
||
# Installation of Vue.JS using npm | ||
|
||
### Prerequisites | ||
|
||
Must have Installed **Node.js** it contains :- | ||
|
||
1. package manager | ||
2. version manager | ||
3. VS Code | ||
|
||
|
||
|
||
### Installing Vue.js | ||
|
||
**Step** 1 : Create a folder. | ||
|
||
**Step** 2 : Open cmd (command line) in that folder. | ||
|
||
**Step** 3 : npm install vue | ||
|
||
|
||
|
||
To check the version that we have installed use command ***vue --version***. | ||
|
||
# What is Vue CLI ? | ||
|
||
It is a ***command line interface***. | ||
|
||
Its is full system for rapid Vue.js development. | ||
|
||
It basically targets the *standard tooling baseline for its ecosystem*. It ensures that various tools works smoothly so that developer can focus more on building the app instead of just spending time with configurations. | ||
|
||
It Provides : | ||
|
||
1. A **full Graphical User interface** to create and manage whole vue.js projects | ||
2. Zero config rapid prototyping | ||
3. project scaffolding | ||
4. some runtime dependency like upgradable, Extensible etc. | ||
5. create app with 1 command | ||
6. plugin support(tailwind, electron) | ||
|
||
# Installation of Vue CLI | ||
|
||
Important : To install vue CLI. We have to use -g flag to globally install. | ||
|
||
**step** **1** : npm install -g @vue/cli | ||
|
||
In order to upgrade use command ***(vue upgrade --next)*** | ||
|
||
# Working on Vue CLI commands | ||
|
||
**Step** 1 : vue create example | ||
|
||
 | ||
|
||
**step** **2** : Then you need to pick a preset and by default it is Babel and ESLint. Use arrow key to navigate and space to select. | ||
|
||
 | ||
|
||
**step** **3** : Choose how to apply linting. | ||
|
||
 | ||
|
||
**step** **4** : Testing choose one of two options for testing | ||
|
||
 | ||
|
||
**step** **5** : vue CLI will ask where to put all configurations in package.jason or any other file. | ||
|
||
 | ||
|
||
**Step** **6** : Vue CLI asks you if I want to save these presets, and allow us to pick them as a choice so that Vue CLI to create a new app. | ||
|
||
 | ||
|
||
**Step** **7** : It will ask You want to use yarn or npm. | ||
|
||
 | ||
|
||
At end you will be all set to go and recieve this message | ||
|
||
 | ||
|
||
And This is how we can work on Vue CLI. |